Commit 3261fe1c authored by Armando Jagucki's avatar Armando Jagucki Committed by ajagucki

Fixed potential null pointer exception in IQPEPHandler. JM-1177

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9439 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9f76477b
...@@ -495,6 +495,10 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider, ...@@ -495,6 +495,10 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider,
public void availableSession(ClientSession session, Presence presence) { public void availableSession(ClientSession session, Presence presence) {
JID newlyAvailableJID = presence.getFrom(); JID newlyAvailableJID = presence.getFrom();
if (newlyAvailableJID == null) {
return;
}
// Send the last published items for the contacts on newlyAvailableJID's roster. // Send the last published items for the contacts on newlyAvailableJID's roster.
try { try {
Roster roster = XMPPServer.getInstance().getRosterManager().getRoster(newlyAvailableJID.getNode()); Roster roster = XMPPServer.getInstance().getRosterManager().getRoster(newlyAvailableJID.getNode());
......
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