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:
v1.7 Released
- Added option to limit MIME types while choosing a gallery image (Special Thanks to [Marchuck](https://github.com/Marchuck))
- Introduced ImageProviderInterceptor, Can be used for analytics (Special Thanks to [Marchuck](https://github.com/Marchuck))
- Fixed FileProvider of the library clashes with the FileProvider of the app [#51](#51) (Special Thanks to [OyaCanli](https://github.com/OyaCanli))
- Added option to set Storage Directory [#52](#52)
- Fixed NullPointerException in FileUriUtils.getPathFromRemoteUri() [#61](#61) (Special Thanks to [himphen](https://github.com/himphen))
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: