java.lang.NullPointerException: file

androidrefer.com | 3 months ago
  1. 0

    mediaStorageDir.mkdirs() not creating directory

    Stack Overflow | 4 years ago | learner
    java.lang.IllegalStateException: Could not execute method of the activity
  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

    file

    at android.net.Uri.fromFile()
  2. Android Platform
    Uri.fromFile
    1. android.net.Uri.fromFile(Uri.java:448)
    1 frame
  3. com.tagconfirm.TagConfirm
    MainActivity$2.onClick
    1. com.tagconfirm.TagConfirm.activity.MainActivity.getOutputMediaFileUri(MainActivity.java:339)
    2. com.tagconfirm.TagConfirm.activity.MainActivity.openGallery(MainActivity.java:233)
    3. com.tagconfirm.TagConfirm.activity.MainActivity.access$200(MainActivity.java:46)
    4. com.tagconfirm.TagConfirm.activity.MainActivity$2.onClick(MainActivity.java:139)
    4 frames
  4. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:5184)
    2. android.view.View$PerformClick.run(View.java:20910)
    3. android.os.Handler.handleCallback(Handler.java:739)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:145)
    6. android.app.ActivityThread.main(ActivityThread.java:5942)
    6 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
    2 frames