fixed NPE when variable not found

This commit is contained in:
Karl Tauber
2019-09-11 23:32:49 +02:00
parent 8604f51add
commit c2cf85b0e2

View File

@@ -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 );
}