java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String, java.lang.String)' on a null object reference

GitHub | xiphirx | 4 weeks 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

    NPE When attempting to read from database

    GitHub | 4 weeks ago | xiphirx
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String, java.lang.String)' on a null object reference
  2. 0

    NullPointerException when using PinnedAmplitudeClient with enableForegroundTracking()

    GitHub | 10 months ago | dmnugent80
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Long com.amplitude.api.DatabaseHelper.getLongValue(java.lang.String)' on a null object reference
  3. 0

    ndroid.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed.

    GitHub | 11 months ago | darshana-ios
    android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String, java.lang.String)' on a null object reference

      at com.amplitude.api.DatabaseHelper.queryDb()
    2. Amplitude Android SDK
      AmplitudeClient$1.run
      1. com.amplitude.api.DatabaseHelper.queryDb(DatabaseHelper.java:395)
      2. com.amplitude.api.DatabaseHelper.getValueFromTable(DatabaseHelper.java:209)
      3. com.amplitude.api.DatabaseHelper.getValue(DatabaseHelper.java:197)
      4. com.amplitude.api.AmplitudeClient.upgradeSharedPrefsToDB(AmplitudeClient.java:2098)
      5. com.amplitude.api.AmplitudeClient.upgradeSharedPrefsToDB(AmplitudeClient.java:2081)
      6. com.amplitude.api.AmplitudeClient$1.run(AmplitudeClient.java:241)
      6 frames
    3. Android Platform
      HandlerThread.run
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:135)
      4. android.os.HandlerThread.run(HandlerThread.java:61)
      4 frames