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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by DomeWTF
, 1 year ago
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
via GitHub by jraczak
, 10 months ago
Unable to resume activity {com.justinraczak.android.squadgoals/com.justinraczak.android.squadgoals.LogWorkoutActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
via GitHub by dmsherazi
, 1 year ago
Unable to resume activity {net.kindows.chitchat/net.kindows.DecoderActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.ViewStub.inflate()' on a null object reference
via GitHub by huteri
, 6 months ago
Unable to resume activity {com.sweetescape.android.staging/com.midtrans.sdk.uikit.activities.CreditDebitCardFlowActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.midtrans.sdk.corekit.models.TransactionResponse.getOrderId()' on a null object reference
via github.com by Unknown author, 1 year ago
Unable to resume activity {com.android.deskclock/com.android.deskclock.alarms.AlarmActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference
via JIRA by Michal M, 1 year ago
Unable to resume activity {com.android.deskclock/com.android.deskclock.alarms.AlarmActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference
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 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)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.