Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with invalid image file #6

Closed
pbauermeister opened this issue May 11, 2015 · 5 comments
Closed

Crash with invalid image file #6

pbauermeister opened this issue May 11, 2015 · 5 comments

Comments

@pbauermeister
Copy link

In the presence of an image file that is invalid, the code crashes. mBitmap is null in:

com.devpaul.filepickerlibrary.adapter.FileListAdapter$BitmapWorkerTask.doInBackground(FileListAdapter.java:215)

To reproduce, do: adb shell "touch /mnt/sdcard/invalid.png", open the picker, and browse to the sdcard location.

@pbauermeister pbauermeister changed the title Crash with ivalid image file Crash with invalid image file May 11, 2015
@DeveloperPaul123
Copy link
Owner

So this happens when the image file itself is not actually an image?

@pbauermeister
Copy link
Author

It happened with an empty .jpg file.

@DeveloperPaul123
Copy link
Owner

Ok Ill take a look at this. Thanks

@DeveloperPaul123
Copy link
Owner

This should be fixed with the latest version. Can you confirm?

@DeveloperPaul123
Copy link
Owner

Seems to work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants