java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference

GitHub | crunchbury | 7 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 crash with KeyValueStorage - related to Keeva?

    GitHub | 7 months ago | crunchbury
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference

      at com.soomla.keeva.Keeva.<init>()
    2. com.soomla.keeva
      Keeva.<init>
      1. com.soomla.keeva.Keeva.<init>(Keeva.java:44)
      1 frame
    3. com.soomla.data
      KeyValueStorage.getValue
      1. com.soomla.data.KeyValueStorage.<init>(KeyValueStorage.java:178)
      2. com.soomla.data.KeyValueStorage.getDefaultStorage(KeyValueStorage.java:160)
      3. com.soomla.data.KeyValueStorage.getValue(KeyValueStorage.java:42)
      3 frames
    4. com.unity3d.player
      UnityPlayer$b$1.handleMessage
      1. com.unity3d.player.UnityPlayer.nativeRender(Native Method)
      2. com.unity3d.player.UnityPlayer.a(Unknown Source)
      3. com.unity3d.player.UnityPlayer$b$1.handleMessage(Unknown Source)
      3 frames
    5. Android Platform
      Looper.loop
      1. android.os.Handler.dispatchMessage(Handler.java:98)
      2. android.os.Looper.loop(Looper.java:148)
      2 frames
    6. com.unity3d.player
      UnityPlayer$b.run
      1. com.unity3d.player.UnityPlayer$b.run(Unknown Source)
      1 frame