Commit c15a0520 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/branches@1401 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2b965332
......@@ -172,6 +172,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 resource = sender.getResource();
if (resources.containsKey(resource)) {
synchronized (priorityList) {
......
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