LOGGER.log(Level.WARNING, "Failed to create cache file.{0}", e.getLocalizedMessage());
return Optional.empty();
}
}
public Task<Image> getThumbnailTask(DrawableFile<?> file) {
<BUG>final Optional<Image> option = cache.getIfPresent(file.getId());

if (option != null && option.isPresent()) {
return new Task<Image>() {</BUG>
@Override

LOGGER.log(Level.WARNING, "Failed to create cache file.{0}", e.getLocalizedMessage());
return Optional.empty();
}
}
public Task<Image> getThumbnailTask(DrawableFile<?> file) {
final Image thumbnail = cache.getIfPresent(file.getId());
if (thumbnail != null) {
return new Task<Image>() {
@Override
