java.lang.RuntimeException: Unable to pause activity {com.joulespersecond.seattlebusbot/org.onebusaway.android.ui.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' 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 GitHub by barbeau
, 1 year ago
Unable to pause activity {com.joulespersecond.seattlebusbot/org.onebusaway.android.ui.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference
via GitHub by lgallard
, 1 year ago
Unable to pause activity {com.lgallardo.qbittorrentclient/com.lgallardo.qbittorrentclient.SettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.lgallardo.qbittorrentclient.DrawerItemRecyclerViewAdapter.refreshDrawerServers(java.util.ArrayList)' on a null object reference
via GitHub by Thunderbottom
, 1 year ago
Unable to pause activity {io.github.UltimateBrowserProject/io.github.UltimateBrowserProject.Activity.BrowserActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String io.github.UltimateBrowserProject.Browser.AlbumController.getUrl()' on a null object reference
via GitHub by trr-amsiq
, 1 year ago
Unable to pause activity {com.app/com.app.activities.main.MainActivity_}: java.lang.NullPointerException: Attempt to invoke interface method 'void com.couchbase.lite.storage.SQLiteStorageEngine.endTransaction()' on a null object reference
via GitHub by trramsiq
, 1 year ago
Unable to pause activity {com.app/com.app.activities.main.MainActivity_}: java.lang.IllegalArgumentException: Receiver not registered: com.app.activities.main.l@6a9bd89
via Stack Overflow by Mahalakshmi Saravanan
, 11 months ago
Unable to pause activity {com.mobifusion.android.ldoce5/com.mobifusion.android.ldoce5.Activity.SlideMenuSearchAndIndex}: java.lang.NullPointerException: println needs a message
java.lang.RuntimeException: Unable to pause activity {com.joulespersecond.seattlebusbot/org.onebusaway.android.ui.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference
at org.onebusaway.android.map.googlemapsv2.BaseMapFragment.onPause(BaseMapFragment.java:283)
at android.support.v4.app.Fragment.performPause(Fragment.java:2123)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1118)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1230)
at android.support.v4.app.FragmentManagerImpl.dispatchPause(FragmentManager.java:2056)
at android.support.v4.app.FragmentController.dispatchPause(FragmentController.java:198)
at org.onebusaway.android.ui.HomeActivity.onPause(HomeActivity.java:338)
at android.app.Activity.performPause(Activity.java:6731)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1338)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4415)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4388)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4363)
at android.app.ActivityThread.access$1200(ActivityThread.java:210)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1722)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

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.