From 4eb742659687258b245dc2966445f94292785f4d Mon Sep 17 00:00:00 2001 From: Harald Kuhr Date: Mon, 27 Jul 2015 11:58:35 +0200 Subject: [PATCH] TMI-154: Fix for AccessControlException when reading "Generic CMYK.icc" --- .../java/com/twelvemonkeys/imageio/color/ColorSpaces.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imageio/imageio-core/src/main/java/com/twelvemonkeys/imageio/color/ColorSpaces.java b/imageio/imageio-core/src/main/java/com/twelvemonkeys/imageio/color/ColorSpaces.java index 7a408615..c3203daf 100644 --- a/imageio/imageio-core/src/main/java/com/twelvemonkeys/imageio/color/ColorSpaces.java +++ b/imageio/imageio-core/src/main/java/com/twelvemonkeys/imageio/color/ColorSpaces.java @@ -52,7 +52,7 @@ import java.util.Properties; *

* Color profiles may be configured by placing a property-file * {@code com/twelvemonkeys/imageio/color/icc_profiles.properties} - * on the classpath, specifying the full path to the profile. + * on the classpath, specifying the full path to the profiles. * ICC color profiles are probably already present on your system, or * can be downloaded from * ICC, @@ -342,7 +342,7 @@ public final class ColorSpaces { try { return ICC_Profile.getInstance(profilePath); } - catch (IOException ignore) { + catch (SecurityException | IOException ignore) { if (DEBUG) { ignore.printStackTrace(); }