java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.free.nrw.commons/fr.free.nrw.commons.upload.ShareActivity}: java.lang.IllegalArgumentException: filename cannot be null

GitHub | misaochan | 9 months ago
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.
  1. 0

    IllegalArgumentException: filename cannot be null

    GitHub | 9 months ago | misaochan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.free.nrw.commons/fr.free.nrw.commons.upload.ShareActivity}: java.lang.IllegalArgumentException: filename cannot be null

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      filename cannot be null at android.media.ExifInterface.<init>(ExifInterface.java:125)

      at fr.free.nrw.commons.upload.GPSExtractor.getCoords()
    2. fr.free.nrw
      ShareActivity.onCreate
      1. fr.free.nrw.commons.upload.GPSExtractor.getCoords(GPSExtractor.java:85)
      2. fr.free.nrw.commons.upload.ShareActivity.getLocationData(ShareActivity.java:333)
      3. fr.free.nrw.commons.upload.ShareActivity.onCreate(ShareActivity.java:277)
      3 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6013)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2359)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2466)
      5. android.app.ActivityThread.access$1200(ActivityThread.java:152)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:135)
      9. android.app.ActivityThread.main(ActivityThread.java:5538)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
      2 frames