From: Wolfgang M. M. <wol...@us...> - 2004-09-12 12:41:00
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xmldb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31404/src/org/exist/xmldb Modified Files: RemoteCollection.java Log Message: RemoteCollection.getResource should return null instead of throwing an exception if the resource does not exist. Index: RemoteCollection.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmldb/RemoteCollection.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** RemoteCollection.java 3 Sep 2004 09:05:32 -0000 1.18 --- RemoteCollection.java 12 Sep 2004 12:40:50 -0000 1.19 *************** *** 289,292 **** --- 289,294 ---- } String docName = (String) hash.get("name"); + if(docName == null) + return null; // resource does not exist! int p; if ((p = docName.lastIndexOf('/')) > -1) |