mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
fixed NPE when variable not found
This commit is contained in:
@@ -222,8 +222,10 @@ public abstract class FlatLaf
|
||||
value = value.substring( REF_PREFIX.length() );
|
||||
|
||||
String newValue = properties.getProperty( value );
|
||||
if( newValue == null )
|
||||
if( newValue == null ) {
|
||||
System.err.println( "variable or reference '" + value + "' not found" );
|
||||
throw new IllegalArgumentException( value );
|
||||
}
|
||||
|
||||
return resolveValue( properties, newValue );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user