java.lang.RuntimeException: Unable to pause activity {com.sth.sth/com.sth.sth.TelerikCallbackActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.mapbox.mapboxsdk.views.MapView.onPause()' on a null object reference

GitHub | TsvetinaIvanova | 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

    Plugin crashes on Android on pause

    GitHub | 5 months ago | TsvetinaIvanova
    java.lang.RuntimeException: Unable to pause activity {com.sth.sth/com.sth.sth.TelerikCallbackActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.mapbox.mapboxsdk.views.MapView.onPause()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void com.mapbox.mapboxsdk.views.MapView.onPause()' on a null object reference

      at com.telerik.plugins.mapbox.Mapbox.onPause()
    2. com.telerik.plugins
      Mapbox.onPause
      1. com.telerik.plugins.mapbox.Mapbox.onPause(Mapbox.java:488)
      1 frame
    3. org.apache.cordova
      CordovaActivity.onPause
      1. org.apache.cordova.PluginManager.onPause(PluginManager.java:209)
      2. org.apache.cordova.CordovaWebViewImpl.handlePause(CordovaWebViewImpl.java:430)
      3. org.apache.cordova.CordovaActivity.onPause(CordovaActivity.java:241)
      3 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.performPause(Activity.java:6101)
      2. android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1310)
      3. android.app.ActivityThread.performPauseActivity(ActivityThread.java:3352)
      4. android.app.ActivityThread.performPauseActivity(ActivityThread.java:3325)
      5. android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3300)
      6. android.app.ActivityThread.access$1000(ActivityThread.java:156)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1362)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:211)
      10. android.app.ActivityThread.main(ActivityThread.java:5389)
      10 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
      2 frames