java.lang.NullPointerException

Attempt to read from field 'double com.google.android.gms.maps.model.LatLng.a' on a null object reference


Solutions on the web21490

Solution icon of stackoverflow
Attempt to read from field 'double com.google.android.gms.maps.model.LatLng.a' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by MrHarrison
, 1 week ago
Attempt to read from field 'double com.google.android.gms.maps.model.LatLng.latitude' on a null object reference

Solution icon of stackoverflow
Attempt to read from field 'double com.google.android.gms.maps.model.LatLng.longitude' on a null object reference

Solution icon of github
Attempt to read from field 'double com.google.android.gms.maps.model.LatLng.longitude' on a null object reference

Solution icon of github
via GitHub by md678685
, 1 year ago
Attempt to read from field 'double rr.p' on a null object reference

Solution icon of stackoverflow
Attempt to read from field 'double com.google.android.gms.maps.model.LatLng.longitude' on a null object reference

Solution icon of stackoverflow
Attempt to read from field 'double com.XX.trips.Trip.a' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by MrHarrison
, 1 week ago
Attempt to read from field 'double com.google.android.gms.maps.model.LatLng.latitude' on a null object reference

Solution icon of stackoverflow
Attempt to read from field 'double com.google.android.gms.maps.model.LatLng.latitude' on a null object reference

Solution icon of stackoverflow
Attempt to read from field 'double com.google.android.gms.maps.model.LatLng.longitude' on a null object reference notebookdata.mycalltaxi.notebook.CarSelectActivity$5.run(CarSelectActivity.java:414) android.os.Handler.handleCallback(Handler.java:739)

Stack trace

  • java.lang.NullPointerException: Attempt to read from field 'double com.google.android.gms.maps.model.LatLng.a' on a null object reference at com.myapp.mapapp.helper.SavedItemsAdapter.access$000(SavedItemsAdapter.java:16) at com.myapp.mapapp.helper.SavedItemsAdapter$ViewHolder.build(SavedItemsAdapter.java:47) at com.myapp.mapapp.helper.SavedItemsAdapter.getView(SavedItemsAdapter.java:33) at android.widget.AbsListView.obtainView(AbsListView.java:2929) at android.widget.ListView.measureHeightOfChildren(ListView.java:1305) at android.widget.ListView.onMeasure(ListView.java:1212) at android.view.View.measure(View.java:20151) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:20151) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:20151) at android.support.v7.widget.AlertDialogLayout.tryOnMeasure(AlertDialogLayout.java:135) at android.support.v7.widget.AlertDialogLayout.onMeasure(AlertDialogLayout.java:63) at android.view.View.measure(View.java:20151) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139) at android.view.View.measure(View.java:20151) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:20151) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:20151) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464) at android.widget.LinearLayout.measureVertical(LinearLayout.java:747) at android.widget.LinearLayout.onMeasure(LinearLayout.java:629) at android.view.View.measure(View.java:20151) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:3158) at android.view.View.measure(View.java:20151) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2594) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1524) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1841) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1437) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7397) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:920) at android.view.Choreographer.doCallbacks(Choreographer.java:695) at android.view.Choreographer.doFrame(Choreographer.java:631) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7224) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

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.