java.lang.NullPointerException: Attempt to read from field 'long org.opencv.core.Mat.nativeObj' on a null object reference

Stack Overflow | Pragyan93 | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    java.lang.NullPointerException: Attempt to read from field 'long org.opencv.core.Mat.nativeObj' on a null object reference

    Stack Overflow | 8 months ago | Pragyan93
    java.lang.NullPointerException: Attempt to read from field 'long org.opencv.core.Mat.nativeObj' on a null object reference

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to read from field 'long org.opencv.core.Mat.nativeObj' on a null object reference

      at org.opencv.imgproc.Imgproc.cvtColor()
    2. org.opencv.imgproc
      Imgproc.cvtColor
      1. org.opencv.imgproc.Imgproc.cvtColor(Imgproc.java:1724)
      1 frame
    3. com.example.pragyan
      ExtractFeature.onOptionsItemSelected
      1. com.example.pragyan.facefeatures.ExtractFeature.trainSvm(ExtractFeature.java:242)
      2. com.example.pragyan.facefeatures.ExtractFeature.onOptionsItemSelected(ExtractFeature.java:313)
      2 frames
    4. Android Platform
      Activity.onMenuItemSelected
      1. android.app.Activity.onMenuItemSelected(Activity.java:2885)
      1 frame
    5. Android Support v4
      FragmentActivity.onMenuItemSelected
      1. android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:403)
      1 frame
    6. Android v7
      AppCompatDelegateImplV7.onMenuItemSelected
      1. android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:189)
      2. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)
      3. android.support.v7.app.AppCompatDelegateImplV7.onMenuItemSelected(AppCompatDelegateImplV7.java:663)
      3 frames
    7. android.support.v7
      MenuPopupHelper.onItemClick
      1. android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:811)
      2. android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
      3. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:958)
      4. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:948)
      5. android.support.v7.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:191)
      5 frames
    8. Android Platform
      ActivityThread.main
      1. android.widget.AdapterView.performItemClick(AdapterView.java:305)
      2. android.widget.AbsListView.performItemClick(AbsListView.java:1146)
      3. android.widget.AbsListView$PerformClick.run(AbsListView.java:3053)
      4. android.widget.AbsListView$3.run(AbsListView.java:3860)
      5. android.os.Handler.handleCallback(Handler.java:739)
      6. android.os.Handler.dispatchMessage(Handler.java:95)
      7. android.os.Looper.loop(Looper.java:135)
      8. android.app.ActivityThread.main(ActivityThread.java:5254)
      8 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
      2 frames