java.lang.NullPointerException: Attempt to invoke virtual method 'void com.googlecode.tesseract.android.TessBaseAPI.stop()' on a null object reference

GitHub | Blaisorblade | 6 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

    GitHub comment 230#242934320

    GitHub | 6 months ago | Blaisorblade
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.googlecode.tesseract.android.TessBaseAPI.stop()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void com.googlecode.tesseract.android.TessBaseAPI.stop()' on a null object reference

      at com.kamron.pogoiv.OCRHelper.exit()
    2. com.kamron.pogoiv
      MainActivity.onDestroy
      1. com.kamron.pogoiv.OCRHelper.exit(Unknown Source)
      2. com.kamron.pogoiv.MainActivity.onDestroy(Unknown Source)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performDestroy(Activity.java:7102)
      2. android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1170)
      3. android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5047)
      4. android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5092)
      5. android.app.ActivityThread.access$1700(ActivityThread.java:221)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1853)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:158)
      9. android.app.ActivityThread.main(ActivityThread.java:7232)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames