java.lang.NullPointerException: Attempt to invoke interface method 'void com.onesignal.u.a(java.lang.Double, java.lang.Double, java.lang.Float, java.lang.Integer)' on a null object reference

GitHub | jkasten2 | 8 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

    Rare Android 6.0 location prompt null exception

    GitHub | 8 months ago | jkasten2
    java.lang.NullPointerException: Attempt to invoke interface method 'void com.onesignal.u.a(java.lang.Double, java.lang.Double, java.lang.Float, java.lang.Integer)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'void com.onesignal.u.a(java.lang.Double, java.lang.Double, java.lang.Float, java.lang.Integer)' on a null object reference

      at com.onesignal.LocationGMS.fireComplete()
    2. com.onesignal
      PermissionsActivity.onRequestPermissionsResult
      1. com.onesignal.LocationGMS.fireComplete(SourceFile:148)
      2. com.onesignal.LocationGMS.fireFailedComplete(SourceFile:142)
      3. com.onesignal.PermissionsActivity.onRequestPermissionsResult(SourceFile:73)
      3 frames
    3. Android Platform
      Activity.requestPermissions
      1. android.app.Activity.requestPermissions(Activity.java:3857)
      1 frame
    4. com.onesignal
      PermissionsActivity.onCreate
      1. com.onesignal.AndroidSupportV4Compat$ActivityCompatApi23.requestPermissions(SourceFile:72)
      2. com.onesignal.AndroidSupportV4Compat$ActivityCompat.requestPermissions(SourceFile:63)
      3. com.onesignal.PermissionsActivity.requestPermission(SourceFile:60)
      4. com.onesignal.PermissionsActivity.onCreate(SourceFile:48)
      4 frames
    5. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6285)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2524)
      5. android.app.ActivityThread.access$900(ActivityThread.java:154)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1391)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:224)
      9. android.app.ActivityThread.main(ActivityThread.java:5526)
      9 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      1 frame
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames