Skip to content

Commit 135248a

Browse files
committed
add a comment for image parsing issue
1 parent acb16be commit 135248a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/org/ohmage/domain/Image.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ public BufferedImage getBufferedImage() throws DomainException {
634634
"The image contents are invalid.");
635635
}
636636
}
637+
// catch IllegalArgumentException when image has error in exif data.
637638
catch(IOException|IllegalArgumentException e) {
638639
throw
639640
new DomainException("The image could not be read.", e);

0 commit comments

Comments
 (0)