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

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

    Stack Overflow | 8 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 | 8 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 | 8 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

    Latest Google Play Services 9.6.80 cause "FirebaseCrash: Failed to initialize crash reporting"

    Stack Overflow | 6 months ago | Elye
    java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference at bol.<init>(:com.google.android.gms.DynamiteModulesC:3201) at com.google.firebase.crash.internal.api.FirebaseCrashApiImpl.init(:com.google.android.gms.DynamiteModulesC:67) at bnu.onTransact(:com.google.android.gms.DynamiteModulesC:60)
  6. 0

    Firebase Crash produces ANR during launch

    Stack Overflow | 6 months ago | Szymon Klimaszewski
    java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference at bol.<init>(:com.google.android.gms.DynamiteModulesC:3201) at com.google.firebase.crash.internal.api.FirebaseCrashApiImpl.init(:com.google.android.gms.DynamiteModulesC:67) at bnu.onTransact(:com.google.android.gms.DynamiteModulesC:60)

    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