jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r637110 - /jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
Date Fri, 14 Mar 2008 14:28:32 GMT
Author: jukka
Date: Fri Mar 14 07:28:31 2008
New Revision: 637110

URL: http://svn.apache.org/viewvc?rev=637110&view=rev
Log:
1.3: Merged revision 637106 (JCR-1461)

Modified:
    jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java

Modified: jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java?rev=637110&r1=637109&r2=637110&view=diff
==============================================================================
--- jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
(original)
+++ jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
Fri Mar 14 07:28:31 2008
@@ -371,11 +371,15 @@
      * @throws RepositoryException if an error occurs
      */
     public AbstractLockInfo getLockInfo(NodeId id) throws RepositoryException {
-        acquire();
-
+        Path path;
         try {
-            Path path = getPath(id);
+            path = getPath(id);
+        } catch (ItemNotFoundException e) {
+            return null;
+        }
 
+        acquire();
+        try {
             PathMap.Element element = lockMap.map(path, false);
             AbstractLockInfo info = (AbstractLockInfo) element.get();
             if (info != null) {
@@ -383,8 +387,6 @@
                     return info;
                 }
             }
-            return null;
-        } catch (ItemNotFoundException e) {
             return null;
         } finally {
             release();



Mime
View raw message