fix for NPE if surrogates do not exist

pull/1/head
orbiter 12 years ago
parent 68e739a90b
commit cd197bb555

@ -1973,7 +1973,7 @@ public final class Switchboard extends serverSwitch {
try { try {
// check surrogates // check surrogates
final String[] surrogatelist = this.surrogatesInPath.list(); final String[] surrogatelist = this.surrogatesInPath.list();
if ( surrogatelist.length > 0 ) { if ( surrogatelist != null && surrogatelist.length > 0 ) {
// look if the is any xml inside // look if the is any xml inside
for ( final String surrogate : surrogatelist ) { for ( final String surrogate : surrogatelist ) {

Loading…
Cancel
Save