java.lang.RuntimeException

Unable to destroy activity {com.kamron.pogoiv/com.kamron.pogoiv.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.googlecode.tesseract.android.TessBaseAPI.stop()' on a null object reference

Samebug tips1

Try loading the text file into a WebView, then printing the contents of the WebView.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web45338

  • via GitHub by Blaisorblade
    , 10 months ago
    Unable to destroy activity {com.kamron.pogoiv/com.kamron.pogoiv.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.googlecode.tesseract.android.TessBaseAPI.stop()' on a null object reference
  • via GitHub by ceeji
    , 1 year ago
    Unable to destroy activity {com.easylearn/cn.finalteam.galleryfinal.PhotoSelectActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.clear()' on a null object reference
  • via Appcelerator JIRA by john adamis, 1 year ago
    Unable to destroy activity {com.myapp/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.OrientationEventListener.disable()' on a null object reference
  • Stack trace

    • java.lang.RuntimeException: Unable to destroy activity {com.kamron.pogoiv/com.kamron.pogoiv.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.googlecode.tesseract.android.TessBaseAPI.stop()' on a null object reference at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5069) at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5092) at android.app.ActivityThread.access$1700(ActivityThread.java:221) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1853) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7232) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    9 times, 2 weeks ago
    37 times, 3 weeks ago
    2 times, 4 weeks ago
    252 times, 1 month ago
    9 times, 1 month ago
    169 more bugmates