jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r748243 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java
Date Thu, 26 Feb 2009 18:00:56 GMT
Author: angela
Date: Thu Feb 26 18:00:56 2009
New Revision: 748243

URL: http://svn.apache.org/viewvc?rev=748243&view=rev
Log:
add exception message

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java?rev=748243&r1=748242&r2=748243&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java
Thu Feb 26 18:00:56 2009
@@ -202,7 +202,7 @@
      */
     public static int getBits(Privilege[] privileges) throws AccessControlException {
         if (privileges == null || privileges.length == 0) {
-            throw new AccessControlException();
+            throw new AccessControlException("Privilege array is empty or null.");
         }
         int bits = NO_PRIVILEGE;
         for (int i = 0; i < privileges.length; i++) {



Mime
View raw message