368114 Protect against non-Strings in System properties for Log

This commit is contained in:
Jan Bartel 2012-01-09 13:12:25 +11:00
parent 2451614381
commit 8222ef815c
1 changed files with 4 additions and 1 deletions

View File

@ -102,7 +102,10 @@ public class Log
while (systemKeyEnum.hasMoreElements())
{
String key = systemKeyEnum.nextElement();
__props.setProperty(key,System.getProperty(key));
String val = System.getProperty(key);
//protect against application code insertion of non-String values (returned as null)
if (val != null)
__props.setProperty(key,val);
}
/* Now use the configuration properties to configure the Log statics