java.lang.NullPointerException

GitHub | null1099 | 1 month ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    As of SDK 23, you have to call this method with ContextCompat.getColor(context, R.color.my_color) so it works with previous API as well. Also, you have to add the support V4 library to your dependencies: "compile 'com.android.support:support-v4:23.0.1'"
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      No message provided

      at com.google.android.gms.internal.zzzw.onActivityResult()
    2. com.google.android
      zzabm.onActivityResult
      1. com.google.android.gms.internal.zzzw.onActivityResult(Unknown Source)
      2. com.google.android.gms.internal.zzabm.onActivityResult(Unknown Source)
      2 frames
    3. Android Support v4
      FragmentActivity.onActivityResult
      1. android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:164)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.dispatchActivityResult(Activity.java:5521)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:3562)
      3. android.app.ActivityThread.handleSendResult(ActivityThread.java:3609)
      4. android.app.ActivityThread.access$1300(ActivityThread.java:151)
      5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1382)
      6. android.os.Handler.dispatchMessage(Handler.java:110)
      7. android.os.Looper.loop(Looper.java:193)
      8. android.app.ActivityThread.main(ActivityThread.java:5312)
      8 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Method.java)
      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:825)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(NativeStart.java)
      1 frame