summaryrefslogtreecommitdiff
path: root/pdf-over-commons
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-09 09:43:02 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-09 09:43:02 +0200
commitb05d696205f220e711f04df6eb8389c6bdbe016a (patch)
tree55cf59837978b7edbed6d006914852b1873f2f44 /pdf-over-commons
parent0dad4e12976720ef16de28cbd54086ef652ab2ec (diff)
downloadpdf-over-b05d696205f220e711f04df6eb8389c6bdbe016a.tar.gz
pdf-over-b05d696205f220e711f04df6eb8389c6bdbe016a.tar.bz2
pdf-over-b05d696205f220e711f04df6eb8389c6bdbe016a.zip
don't quietly fail image conversion
Diffstat (limited to 'pdf-over-commons')
-rw-r--r--pdf-over-commons/src/main/java/at/asit/pdfover/commons/utils/ImageUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/utils/ImageUtil.java b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/utils/ImageUtil.java
index b3687022..416e0157 100644
--- a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/utils/ImageUtil.java
+++ b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/utils/ImageUtil.java
@@ -252,6 +252,6 @@ public final class ImageUtil {
}
return data;
}
- return null;
+ throw new RuntimeException("could not convert image with model " + bufferedImage.getColorModel().getClass().getName());
}
}