Changeset 2192 for trunk/java-client/org
- Timestamp:
- 2001-03-18T20:25:21+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/org/nzdl/gsdl/util/NzdlServiceFactory.java
r2189 r2192 247 247 if (client == null) { 248 248 String[] IORs = NzdlServiceFactory.getIORsfromFile(_filename); 249 for (int i=0;( i<IORs.length && client == null );i++) {249 for (int i=0;(IORs != null && i<IORs.length && client == null );i++) { 250 250 client = attemptToInitialise(_args, _props,IORs[i]); 251 251 } … … 253 253 254 254 // try the compiled-in URLs 255 if (client == null ) {255 if (client == null && urlsCompiledIn != null) { 256 256 for (int i=0;( i<urlsCompiledIn.length && client == null );i++) { 257 257 String[] IORs = NzdlServiceFactory.getIORsfromURL(urlsCompiledIn[i]); 258 for (int j=0;( j<IORs.length && client == null );j++) {258 for (int j=0;(IORs != null && j<IORs.length && client == null );j++) { 259 259 client = attemptToInitialise(_args, _props,IORs[j]); 260 260 } … … 412 412 System.err.println("NzdlHosts::getIOR() unable to construct or read URL \"" + 413 413 str + "\", \"" + ior + "\": " + throwable); 414 return n ull;414 return new String[0]; 415 415 } 416 416 } … … 457 457 System.err.println("Error reading IOR file:\n" + e); 458 458 } 459 return n ull;460 } // end of getIorKey459 return new String[0]; 460 } 461 461 462 462 /**
Note:
See TracChangeset
for help on using the changeset viewer.