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

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
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);
     }
 
     /**
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.