From: Wolfgang M. M. <wol...@us...> - 2004-09-14 17:05:46
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/collections In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1560/src/org/exist/collections Modified Files: Collection.java Log Message: getDocumentWithLock throws NPE if document does not exist. Index: Collection.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/collections/Collection.java,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** Collection.java 12 Sep 2004 09:25:25 -0000 1.51 --- Collection.java 14 Sep 2004 17:05:35 -0000 1.52 *************** *** 457,460 **** --- 457,462 ---- } DocumentImpl doc = (DocumentImpl) documents.get(name); + if(doc == null) + return null; Lock updateLock = doc.getUpdateLock(); updateLock.acquire(Lock.READ_LOCK); |