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

Stack Overflow | wazid shah | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Android Sqlite fetching data

    Stack Overflow | 5 months ago | wazid shah
    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

    Root Cause Analysis

    1. 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()
    2. com.example.waz
      MessageActivity.onCreate
      1. com.example.waz.moneymanager.MessageActivity.onCreate(MessageActivity.java:30)
      1 frame
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:5955)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2265)
      3 frames