mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 23:37:13 -06:00
UI defaults inspector: avoid NPE if DerivedColorKeys.properties missing
This commit is contained in:
@@ -381,7 +381,8 @@ public class FlatUIDefaultsInspector
|
|||||||
String name = "/com/formdev/flatlaf/extras/resources/DerivedColorKeys.properties";
|
String name = "/com/formdev/flatlaf/extras/resources/DerivedColorKeys.properties";
|
||||||
Properties properties = new Properties();
|
Properties properties = new Properties();
|
||||||
try( InputStream in = getClass().getResourceAsStream( name ) ) {
|
try( InputStream in = getClass().getResourceAsStream( name ) ) {
|
||||||
properties.load( in );
|
if( in != null )
|
||||||
|
properties.load( in );
|
||||||
} catch( IOException ex ) {
|
} catch( IOException ex ) {
|
||||||
LoggingFacade.INSTANCE.logSevere( "FlatLaf: Failed to load '" + name + "'.", ex );
|
LoggingFacade.INSTANCE.logSevere( "FlatLaf: Failed to load '" + name + "'.", ex );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user