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

Stack Overflow | Pragyan93 | 5 months ago
  1. 0

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

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

    Opencv for android:Imgproc.findContours has an error

    Stack Overflow | 8 months ago | SunFH
    java.lang.NullPointerException: Attempt to read from field 'long org.opencv.core.Mat.nativeObj' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Error while implementing watershed segmentation using Opencv Android

    Stack Overflow | 2 years ago | Rahul Solanki
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/14963 flg=0x1 }} to activity {net.viralpatel.android.imagegalleray/net.viralpatel.android.imagegalleray.ImageGalleryDemoActivity}: java.lang.NullPointerException: Attempt to read from field 'long org.opencv.core.Mat.nativeObj' on a null object reference
  5. 0

    Opencv for android:Imgproc.findContours has an error

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

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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