Commit f90319c7 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed NPE when trying to add a new handler to the map of directed presences.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@952 b35dd754-fafc-0310-a699-88a17e54d16e
parent b2b5b9b8
...@@ -333,6 +333,9 @@ public class PresenceUpdateHandler extends BasicModule implements ChannelHandler ...@@ -333,6 +333,9 @@ public class PresenceUpdateHandler extends BasicModule implements ChannelHandler
// Add the handler to the list of handler that processed the directed // Add the handler to the list of handler that processed the directed
// presence sent by the user. This handler will be used to send // presence sent by the user. This handler will be used to send
// the unavailable presence when the user goes offline // the unavailable presence when the user goes offline
if (map.get(handler) == null) {
map.put(handler, new HashSet<String>());
}
map.get(handler).add(jid); map.get(handler).add(jid);
} }
} }
......
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