You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reasons, in FileUriUtils.getPathFromRemoteUri(), FileUtil.getImageFile(context.cacheDir, extension) returned null and null is passed into FileOutputStream(@NonNull File file). In my case, user choose a file from content://com.microsoft.skydrive.content.StorageAccessProvider.
It may be caused NullPointerException and please consider checking file != null. Thank you.
Caused by java.lang.NullPointerException
at com.github.dhaval2404.imagepicker.util.FileUriUtils.getPathFromRemoteUri(FileUriUtils.java:158)
at com.github.dhaval2404.imagepicker.util.FileUriUtils.getRealPath(FileUriUtils.java:31)
at com.github.dhaval2404.imagepicker.provider.GalleryProvider.handleResult(GalleryProvider.java:102)
at com.github.dhaval2404.imagepicker.provider.GalleryProvider.onActivityResult(GalleryProvider.java:89)
at com.github.dhaval2404.imagepicker.ImagePickerActivity.onActivityResult(ImagePickerActivity.java:133)
The text was updated successfully, but these errors were encountered:
For some reasons, in
FileUriUtils.getPathFromRemoteUri()
,FileUtil.getImageFile(context.cacheDir, extension)
returned null and null is passed intoFileOutputStream(@NonNull File file)
. In my case, user choose a file fromcontent://com.microsoft.skydrive.content.StorageAccessProvider
.It may be caused
NullPointerException
and please consider checking file != null. Thank you.The text was updated successfully, but these errors were encountered: