Commit cbdd2e93 authored by Tom Evans's avatar Tom Evans Committed by tevans

OF-14: Avoid NPE when validating remote sessions

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13614 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6a16d06d
......@@ -2035,10 +2035,8 @@ public abstract class Node {
// Note however that this may be somewhat in conflict with the following:
// 12.3 "Presence-Based Delivery of Events" - automatically detect user's presence
//
String username = subscriberJID.getNode();
String resource = subscriberJID.getResource();
if (resource == null ||
SessionManager.getInstance().isActiveRoute(username, resource)) {
if (subscriberJID.getResource() == null ||
SessionManager.getInstance().getSession(subscriberJID) != null) {
service.sendNotification(this, notification, subscriberJID);
}
......
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