mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 15:00:54 +03:00
NPE getDisabledIcon Fix
This commit is contained in:
@@ -106,7 +106,7 @@ public abstract class FlatLaf
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Icon getDisabledIcon(JComponent component, Icon icon) {
|
public Icon getDisabledIcon(JComponent component, Icon icon) {
|
||||||
return new IconUIResource(FlatUIUtils.getDisabledIcon(icon));
|
return ( icon == null ) ? null : new IconUIResource( FlatUIUtils.getDisabledIcon( icon ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user