From b05d696205f220e711f04df6eb8389c6bdbe016a Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Tue, 9 Aug 2022 09:43:02 +0200 Subject: don't quietly fail image conversion --- .../src/main/java/at/asit/pdfover/commons/utils/ImageUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } } -- cgit v1.2.3