ensure that services always wrap any work done within the read/write lock with a...
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 8 Jan 2011 20:00:45 +0000 (20:00 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 8 Jan 2011 20:00:45 +0000 (20:00 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@2978 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/main/java/edu/internet2/middleware/shibboleth/idp/profile/IdPProfileHandlerManager.java

index 6b88b23..5e9397f 100644 (file)
@@ -86,8 +86,11 @@ public class IdPProfileHandlerManager extends BaseReloadableService implements P
 
         Lock readLock = getReadWriteLock().readLock();
         readLock.lock();
-        handler = profileHandlers.get(requestPath);
-        readLock.unlock();
+        try{
+            handler = profileHandlers.get(requestPath);
+        }finally{
+            readLock.unlock();
+        }
 
         if (handler != null) {
             log.debug("{}: Located profile handler of the following type for the request path: {}", getId(), handler