java.lang.RuntimeException: Unable to start activity ComponentInfo{neerajshah.locationnearby/neerajshah.locationnearby.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.setMyLocationEnabled(boolean)' on a null object reference

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

    unable to getting map using google map

    Stack Overflow | 7 months ago | user6313669
    java.lang.RuntimeException: Unable to start activity ComponentInfo{neerajshah.locationnearby/neerajshah.locationnearby.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.setMyLocationEnabled(boolean)' on a null object reference
  2. 0

    Not send authentciation cookie (LtpaToken) on Android devices using IBM MF 7.0 and Cordova

    Stack Overflow | 1 year ago | KRRySS
    java.lang.NullPointerException: Attempt to invoke virtual method android.webkit.WebSettings android.webkit.WebView.getSettings()' on a null object reference
  3. 0

    Android Game SimpleXML Levels loading Error

    Stack Overflow | 2 years ago | shizzle31
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I have got a nullpointer exception

    Stack Overflow | 4 years ago | user2656455
    java.lang.NullPointerException

    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 'void com.google.android.gms.maps.GoogleMap.setMyLocationEnabled(boolean)' on a null object reference

      at neerajshah.locationnearby.MainActivity.onCreate()
    2. neerajshah.locationnearby
      MainActivity.onCreate
      1. neerajshah.locationnearby.MainActivity.onCreate(MainActivity.java:111)
      1 frame
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6259)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
      3 frames