Commit 6ed242d5 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fix bug when changing priority to an anonymous session.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1398 b35dd754-fafc-0310-a699-88a17e54d16e
parent 72583307
......@@ -631,6 +631,10 @@ public class SessionManager extends BasicModule {
* @param priority The new priority for the session
*/
public void changePriority(JID sender, int priority) {
if (sender.getNode() == null) {
// Do nothing if the session belongs to an anonymous user
return;
}
String username = sender.getNode().toLowerCase();
synchronized (username.intern()) {
SessionMap resources = sessions.get(username);
......
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