You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ja...@apache.org on 2008/03/13 12:28:00 UTC

svn commit: r636717 - /lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/file/FileItemManager.java

Author: jann
Date: Thu Mar 13 04:27:53 2008
New Revision: 636717

URL: http://svn.apache.org/viewvc?rev=636717&view=rev
Log:
No exception should be thrown if the Item is not found. Otherwise an exception is thrown if a user tries to login with a wrong user name

Modified:
    lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/file/FileItemManager.java

Modified: lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/file/FileItemManager.java
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/file/FileItemManager.java?rev=636717&r1=636716&r2=636717&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/file/FileItemManager.java (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/file/FileItemManager.java Thu Mar 13 04:27:53 2008
@@ -268,15 +268,8 @@
             loadItems();
         } catch (AccessControlException e) {
             throw new IllegalStateException(e.getMessage());
-        }
-        Item item;
-        if (items.containsKey(id)) {
-            item = (Item) items.get(id);
-        } else {
-            throw new RuntimeException("Item [" + id + "] not found.");
-        }
-
-        return item;
+        }       
+        return (Item) items.get(id);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org