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

Potential null pointer access in LoadAndDisplayImageTask #271

Closed
koral-- opened this issue May 2, 2013 · 1 comment
Closed

Potential null pointer access in LoadAndDisplayImageTask #271

koral-- opened this issue May 2, 2013 · 1 comment
Labels

Comments

@koral--
Copy link

koral-- commented May 2, 2013

Lines 281-282:

            if (cacheDir == null || !cacheDir.exists()) {
                cacheDir.mkdirs();

If cacheDir is null then NPE will always be thrown. Perhaps it should be:

if (cacheDir != null && !cacheDir.exists())
@nostra13
Copy link
Owner

Right. Thanks for the bug.

nostra13 added a commit that referenced this issue May 19, 2013
@koral-- koral-- closed this as completed Jun 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants