failure to catch an empty enumeration from javascript caused a bug when
an application had no app.properties. workaround: check against new method SystemProperties.size().
This commit is contained in:
parent
a48d2fefc9
commit
0524f54a47
1 changed files with 2 additions and 2 deletions
|
@ -25,10 +25,10 @@ function formatProperties(props,par) {
|
|||
var prefix = (par && par.prefix) ? par.prefix : "";
|
||||
var suffix = (par && par.suffix) ? par.suffix : "";
|
||||
var separator = (par && par.separator) ? par.separator : "";
|
||||
if ( props.size()==0 )
|
||||
return "";
|
||||
var e = props.keys();
|
||||
var arr = new Array();
|
||||
if ( e==null )
|
||||
return "";
|
||||
while ( e.hasMoreElements() ) {
|
||||
arr[arr.length] = e.nextElement();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue