Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes #67

  • Loading branch information...
commit 480e502cc881ff42aa25121ecd1535de4302d5bf 1 parent 9f7c448
@friedger friedger authored
View
6 core/src/main/java/com/novoda/imageloader/core/bitmap/BitmapUtil.java
@@ -50,7 +50,11 @@ public Bitmap decodeFile(File f, int width, int height) {
public Bitmap decodeFileAndScale(File f, int width, int height) {
Bitmap unscaledBitmap = decodeFile(f, width, height);
- return scaleBitmap(unscaledBitmap, width, height);
+ if (unscaledBitmap == null) {
+ return null;
+ } else {
+ return scaleBitmap(unscaledBitmap, width, height);
+ }
}
@Deprecated
Please sign in to comment.
Something went wrong with that request. Please try again.