Commit f343909a authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Throw unsupportedoperationexception if username specified is null.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches/openfire_3_5_0@9975 b35dd754-fafc-0310-a699-88a17e54d16e
parent 27659bd9
......@@ -126,6 +126,9 @@ public class LockOutManager {
* @throws NotLockedOutException if user account specified is not currently locked out (disabled).
*/
public LockOutFlag getDisabledStatus(String username) throws NotLockedOutException {
if (username == null) {
throw new UnsupportedOperationException("Null username not allowed!");
}
LockOutFlag flag = lockOutCache.get(username);
// If ID wan't found in cache, load it up and put it there.
if (flag == 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