aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/util
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-01 10:08:00 +0300
committerGravatar Vitaly Takmazov2019-03-01 10:08:00 +0300
commite1e416608c2ed864cb7d93fc582dd267aa5a0b5e (patch)
tree384d86aed9e3e784329fa905b551f165fc00a33f /src/main/java/com/juick/server/util
parentb53425e6b036f6760a5d0a98537f99b8d9509d34 (diff)
ImageUtils catch IOException from apache-imaging
Diffstat (limited to 'src/main/java/com/juick/server/util')
-rw-r--r--src/main/java/com/juick/server/util/ImageUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/server/util/ImageUtils.java b/src/main/java/com/juick/server/util/ImageUtils.java
index d16faf8f..2f5d3292 100644
--- a/src/main/java/com/juick/server/util/ImageUtils.java
+++ b/src/main/java/com/juick/server/util/ImageUtils.java
@@ -108,7 +108,7 @@ public class ImageUtils {
}
}
}
- } catch (ImageReadException e) {
+ } catch (ImageReadException | IOException e) {
// failed to read metadata.
// nothing to do here, return image as is.
}