Update DrawableAttribute.java

This commit is contained in:
Richard Cordovano 2019-06-26 17:05:45 -04:00 committed by GitHub
parent 85e0dbadfc
commit e4f90a4b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,9 +235,9 @@ public class DrawableAttribute<T extends Comparable<T>> {
.filter(value -> (value != null && value.toString().isEmpty() == false))
.collect(Collectors.toSet());
} catch (Exception ex) {
/* NOTE: (JIRA-5144) Some of the lambda expressions may throw exceptions,
often unexpected ones. For example this happens when a file's MIME type was
incorrectly identified as a picture. */
/* There is a catch-all here because the code in the try block executes third-party
library calls that throw unchecked exceptions. See JIRA-5144, where an IllegalStateException
was thrown because a file's MIME type was incorrectly identified as a picture type. */
logger.log(Level.WARNING, "Exception while getting image attributes", ex); //NON-NLS
return Collections.EMPTY_SET;
}