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

Stack Overflow | rocko | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Google Maps app stopped working

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

    Google Maps app crash reporting

    Stack Overflow | 7 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 won't show markers

    Stack Overflow | 7 months ago | Andreea Mateescu
    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

    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:149)
      2. com.example.francydarkcool.maps.MapsActivity.access$100(MapsActivity.java:18)
      3. com.example.francydarkcool.maps.MapsActivity$1.onMapReady(MapsActivity.java:46)
      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