java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • java.lang.RuntimeException: Unable to resume activity {d.g.movida/d.g.movida.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLongitude()' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4156) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4250) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1839) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7229) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLongitude()' on a null object reference at d.g.movida.MainActivity.updateList(MainActivity.java:121) at d.g.movida.MainActivity.onResume(MainActivity.java:342) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1286) at android.app.Activity.performResume(Activity.java:6987) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4145)
No Bugmate found.