java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLongitude()' on a null object reference

  1. 0

    Google Maps app won't show markers

    Stack Overflow | 5 months ago | Andreea Mateescu
    java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLongitude()' on a null object reference
  2. 0

    Google Maps app stopped working

    Stack Overflow | 5 months ago | rocko
    java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLongitude()' on a null object reference
  3. 0

    Google Maps app crash reporting

    Stack Overflow | 5 months ago | rocko
    java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLongitude()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    null pointer exception in location while getting current location in android using location manager

    Stack Overflow | 9 months ago | Anmol Thukral
    java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLongitude()' on a null object reference
  6. 0

    Crash on GPS coordinates receipt

    GitHub | 2 months ago | BishopGIS
    java.lang.RuntimeException: Unable to resume activity {com.nextgis.mobile/com.nextgis.maplibui.activity.FormBuilderModifyAttributesActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLongitude()' on a null object reference

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'double android.location.Location.getLongitude()' on a null object reference

      at com.example.francydarkcool.maps.MapsActivity.setUpMap()
    2. com.example.francydarkcool
      MapsActivity$1.onMapReady
      1. com.example.francydarkcool.maps.MapsActivity.setUpMap(MapsActivity.java:152)
      2. com.example.francydarkcool.maps.MapsActivity.access$100(MapsActivity.java:19)
      3. com.example.francydarkcool.maps.MapsActivity$1.onMapReady(MapsActivity.java:47)
      3 frames
    3. com.google.android
      zzp$zza.onTransact
      1. com.google.android.gms.maps.MapFragment$zza$1.zza(Unknown Source)
      2. com.google.android.gms.maps.internal.zzp$zza.onTransact(Unknown Source)
      2 frames
    4. Android Platform
      Binder.transact
      1. android.os.Binder.transact(Binder.java:380)
      1 frame