if (thumbnail == ImageUtils.getDefaultThumbnail()) {
jfxthumbnail = null;
} else {
jfxthumbnail = SwingFXUtils.toFXImage(thumbnail, null);
}
<BUG>return Optional.ofNullable(jfxthumbnail); //return icon, or null if generation failed
}</BUG>
private static Optional<File> getCacheFile(DrawableFile<?> file) {
try {
return Optional.of(ImageUtils.getCachedThumbnailFile(file.getAbstractFile(), MAX_THUMBNAIL_SIZE));

if (thumbnail == ImageUtils.getDefaultThumbnail()) {
jfxthumbnail = null;
} else {
jfxthumbnail = SwingFXUtils.toFXImage(thumbnail, null);
}
return jfxthumbnail; //return icon, or null if generation failed
}
private static Optional<File> getCacheFile(DrawableFile<?> file) {
try {
return Optional.of(ImageUtils.getCachedThumbnailFile(file.getAbstractFile(), MAX_THUMBNAIL_SIZE));
