singhangadin / android-filepicker

Selecting directories/files made a lot easier.
Apache License 2.0
651 stars 139 forks source link

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String java.io.File.getAbsolutePath()’ on a null object reference #56

Open alijohar opened 7 years ago

alijohar commented 7 years ago

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String java.io.File.getAbsolutePath()’ on a null object reference at com.github.angads25.filepicker.view.FilePickerDialog.onItemClick(SourceFile:213) at android.widget.AdapterView.performItemClick(AdapterView.java:334) at android.widget.AbsListView.performItemClick(AbsListView.java:1531) at android.widget.AbsListView$PerformClick.run(AbsListView.java:3664) at android.widget.AbsListView$3.run(AbsListView.java:5585) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5942) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)

singhangadin commented 7 years ago

Hey, which version of library are you using in your app?

alijohar commented 7 years ago

1.0.8

On Jul 5, 2017, at 11:09 AM, Angad Singh notifications@github.com wrote:

Hey, which version of library are you using in your app?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Angads25/android-filepicker/issues/56#issuecomment-313014488, or mute the thread https://github.com/notifications/unsubscribe-auth/ADH7LUyB3WR-VWcz1MMAwJTWmW9q3KyRks5sKy-WgaJpZM4ON4ov.

GiorgiToNieve commented 6 years ago

Pudieron solucionarlo?

esunilkumare commented 5 years ago

Hi Angad,

Facing this same issue on filepicker:1.1.1 version as well. Do we have any solutions for this issue? Please note this is happening when we press back button without selecting any documents.

-- Thanks Sunil