Skip to content

Commit

Permalink
check size of not loaded image
Browse files Browse the repository at this point in the history
  • Loading branch information
VMaximenko authored and VMaximenko committed Jul 5, 2013
1 parent ec6ed5d commit 3779c55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/com/friday_countdown/andriod/ImageStore.java
Expand Up @@ -287,8 +287,10 @@ private void checkImageProperties() {
bis.close();
fis.close();

fridayImage.width = img.getWidth();
fridayImage.height = img.getHeight();
if ( img != null ) {
fridayImage.width = img.getWidth();
fridayImage.height = img.getHeight();
}

// only for DB stored images
setPictureDimensions(fridayImage.width, fridayImage.height);
Expand Down

0 comments on commit 3779c55

Please sign in to comment.