mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 23:07:15 -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() );
|
value = value.substring( REF_PREFIX.length() );
|
||||||
|
|
||||||
String newValue = properties.getProperty( value );
|
String newValue = properties.getProperty( value );
|
||||||
if( newValue == null )
|
if( newValue == null ) {
|
||||||
System.err.println( "variable or reference '" + value + "' not found" );
|
System.err.println( "variable or reference '" + value + "' not found" );
|
||||||
|
throw new IllegalArgumentException( value );
|
||||||
|
}
|
||||||
|
|
||||||
return resolveValue( properties, newValue );
|
return resolveValue( properties, newValue );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user