mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 06:57: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";
|
||||
Properties properties = new Properties();
|
||||
try( InputStream in = getClass().getResourceAsStream( name ) ) {
|
||||
properties.load( in );
|
||||
if( in != null )
|
||||
properties.load( in );
|
||||
} catch( IOException ex ) {
|
||||
LoggingFacade.INSTANCE.logSevere( "FlatLaf: Failed to load '" + name + "'.", ex );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user