java.lang.NullPointerException: Listener must not be null

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Root Cause Analysis

  1. java.lang.NullPointerException

    Listener must not be null

    at com.google.android.gms.common.internal.zzx.zzb()
  2. com.google.android
    GoogleApiClient$Builder.addConnectionCallbacks
    1. com.google.android.gms.common.internal.zzx.zzb(Unknown Source)
    2. com.google.android.gms.common.api.GoogleApiClient$Builder.addConnectionCallbacks(Unknown Source)
    2 frames
  3. md551afeb14f78091b7dcc7953e9e497c49
    MapActivity.onCreate
    1. md551afeb14f78091b7dcc7953e9e497c49.MapActivity.n_onCreate(Native Method)
    2. md551afeb14f78091b7dcc7953e9e497c49.MapActivity.onCreate(MapActivity.java:33)
    2 frames
  4. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5411)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2233)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2359)
    5. android.app.ActivityThread.access$800(ActivityThread.java:139)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:136)
    9. android.app.ActivityThread.main(ActivityThread.java:5230)
    9 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame