java.lang.RuntimeException

Unable to start activity ComponentInfo{com.example.waz.moneymanager/com.example.waz.moneymanager.MessageActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.waz.moneymanager.DatabaseHelper.getall()' on a null object reference

Solutions on the web45880

  • via Stack Overflow by wazid shah
    , 10 months ago
    Unable to start activity ComponentInfo{com.example.waz.moneymanager/com.example.waz.moneymanager.MessageActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.waz.moneymanager.DatabaseHelper.getall()' on a null object reference
  • Unable to start activity ComponentInfo{****}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.loopj.android.http.AsyncHttpClient.addHeader(java.lang.String, java.lang.String)' on a null object reference
  • via GitHub by pawlowskim
    , 3 months ago
    Unable to start activity ComponentInfo{com.my_app/com.hokolinks.activity.HokoActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.waz.moneymanager/com.example.waz.moneymanager.MessageActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.waz.moneymanager.DatabaseHelper.getall()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2321) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2383) at android.app.ActivityThread.access$800(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1288) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5311) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:115) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.waz.moneymanager.DatabaseHelper.getall()' on a null object reference at com.example.waz.moneymanager.MessageActivity.onCreate(MessageActivity.java:30) at android.app.Activity.performCreate(Activity.java:5955) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2265)

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.