TMI-154: Fix for AccessControlException when reading "Generic CMYK.icc"

This commit is contained in:
Harald Kuhr 2015-07-27 11:58:35 +02:00
parent 1ee22e120d
commit 4eb7426596

View File

@ -52,7 +52,7 @@ import java.util.Properties;
* <p /> * <p />
* Color profiles may be configured by placing a property-file * Color profiles may be configured by placing a property-file
* {@code com/twelvemonkeys/imageio/color/icc_profiles.properties} * {@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 * ICC color profiles are probably already present on your system, or
* can be downloaded from * can be downloaded from
* <a href="http://www.color.org/profiles2.xalter">ICC</a>, * <a href="http://www.color.org/profiles2.xalter">ICC</a>,
@ -342,7 +342,7 @@ public final class ColorSpaces {
try { try {
return ICC_Profile.getInstance(profilePath); return ICC_Profile.getInstance(profilePath);
} }
catch (IOException ignore) { catch (SecurityException | IOException ignore) {
if (DEBUG) { if (DEBUG) {
ignore.printStackTrace(); ignore.printStackTrace();
} }