java.lang.NullPointerException: Attempt to invoke virtual method 'double org.mapsforge.core.model.LatLong.getLatitude()' on a null object reference

Google Groups | Luis Navarro | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Cant get latitude and longitude

    Google Groups | 7 months ago | Luis Navarro
    java.lang.NullPointerException: Attempt to invoke virtual method 'double org.mapsforge.core.model.LatLong.getLatitude()' on a null object reference
  2. 0

    Can't get location with Mapsforge

    Stack Overflow | 7 months ago | Luis Navarro Arenas
    java.lang.RuntimeException: Unable to create service com.example.luis.safe.Tracker: java.lang.NullPointerException: Attempt to invoke virtual method 'double org.mapsforge.core.model.LatLong.getLatitude()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'double org.mapsforge.core.model.LatLong.getLatitude()' on a null object reference

      at com.example.luis.safe.Tracker.onCreate()
    2. com.example.luis
      Tracker.onCreate
      1. com.example.luis.safe.Tracker.onCreate(Tracker.java:57)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.app.ActivityThread.handleCreateService(ActivityThread.java:2895)
      2. android.app.ActivityThread.access$1900(ActivityThread.java:157)
      3. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1439)
      4. android.os.Handler.dispatchMessage(Handler.java:102)
      5. android.os.Looper.loop(Looper.java:148)
      6. android.app.ActivityThread.main(ActivityThread.java:5530)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
      2 frames