svn commit: r899053 - /ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/ContextUtil.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r899053 - /ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/ContextUtil.java

adrianc
Author: adrianc
Date: Thu Jan 14 03:54:23 2010
New Revision: 899053

URL: http://svn.apache.org/viewvc?rev=899053&view=rev
Log:
Better exception handling - suggested by Adam Heath.

Modified:
    ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/ContextUtil.java

Modified: ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/ContextUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/ContextUtil.java?rev=899053&r1=899052&r2=899053&view=diff
==============================================================================
--- ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/ContextUtil.java (original)
+++ ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/ContextUtil.java Thu Jan 14 03:54:23 2010
@@ -20,6 +20,7 @@
 
 import static org.ofbiz.api.authorization.BasicPermissions.Access;
 
+import java.security.AccessControlException;
 import java.util.List;
 
 import javolution.util.FastList;
@@ -48,7 +49,9 @@
             try {
                 accessController.checkPermission(Access, artifactPath);
                 resultList.add(webAppInfo);
-            } catch (Exception e) {}
+            } catch (AccessControlException e) {
+                // This exception is expected - do nothing
+            }
             artifactPath.restoreState();
         }
         return resultList;