Skip to content

Commit 96bef67

Browse files
committed
Illigal Argument Exception catch
1 parent 7be4e0e commit 96bef67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/main/java/com/genexus/GxImageUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static int getImageHeight(String imageFile) {
3535
try (InputStream is = getInputStream(imageFile)) {
3636
return ImageIO.read(is).getHeight();
3737
}
38-
catch (IOException e) {
38+
catch (Exception e) {
3939
log.error("getImageHeight " + imageFile + " failed" , e);
4040
return 0;
4141
}
@@ -45,7 +45,7 @@ public static int getImageWidth(String imageFile) {
4545
try (InputStream is = getInputStream(imageFile)) {
4646
return ImageIO.read(is).getWidth();
4747
}
48-
catch (IOException e) {
48+
catch (Exception e) {
4949
log.error("getImageWidth " + imageFile + " failed" , e);
5050
return 0;
5151
}

0 commit comments

Comments
 (0)