Commit 04d8e8db authored by Matt Tucker's avatar Matt Tucker Committed by matt

getUser will throw UserNotFoundException instead of IllegalArgumentException for illegal usernames.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@812 b35dd754-fafc-0310-a699-88a17e54d16e
parent f01e1abd
......@@ -128,7 +128,7 @@ public class UserManager {
username = Stringprep.nodeprep(username);
}
catch (StringprepException se) {
throw new IllegalArgumentException("Invalid username: " + username, se);
throw new UserNotFoundException("Invalid username: " + username, se);
}
User user = (User) userCache.get(username);
if (user == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment