java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zuercher.zuerchertechnik/com.zuercher.zuerchertechnik.Display_contact}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.MapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference

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

    Android implement Google maps with fragment

    Stack Overflow | 8 months ago | nightslit
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zuercher.zuerchertechnik/com.zuercher.zuerchertechnik.Display_contact}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.MapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void com.google.android.gms.maps.MapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference

      at com.zuercher.zuerchertechnik.Display_contact.onCreate()
    2. com.zuercher.zuerchertechnik
      Display_contact.onCreate
      1. com.zuercher.zuerchertechnik.Display_contact.onCreate(Display_contact.java:41)
      1 frame
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6112)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1117)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2609)
      3 frames