mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE under jdk9
This commit is contained in:
@@ -269,12 +269,12 @@ public final class IconLoader {
|
||||
|
||||
@Nullable
|
||||
private static ImageIcon checkIcon(final Image image, @NotNull URL url) {
|
||||
if (image == null || image.getHeight(LabelHolder.ourFakeComponent) < 1) { // image wasn't loaded or broken
|
||||
if (image == null || image.getHeight(null) < 1) { // image wasn't loaded or broken
|
||||
return null;
|
||||
}
|
||||
|
||||
final Icon icon = getIcon(image);
|
||||
if (icon != null && !isGoodSize(icon)) {
|
||||
if (!isGoodSize(icon)) {
|
||||
LOG.error("Invalid icon: " + url); // # 22481
|
||||
return EMPTY_ICON;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user