Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
cacea9d7
Commit
cacea9d7
authored
Feb 08, 2015
by
Christian Schudt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #177 from tevans/OF-874
OF-874: Fix NPE if from/to is missing
parents
c348e9b9
9b6b00ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
SessionManager.java
src/java/org/jivesoftware/openfire/SessionManager.java
+4
-2
No files found.
src/java/org/jivesoftware/openfire/SessionManager.java
View file @
cacea9d7
...
...
@@ -1200,8 +1200,10 @@ public class SessionManager extends BasicModule implements ClusterEventListener,
@Override
public
Iterator
<
DiscoItem
>
getItems
(
String
name
,
String
node
,
JID
senderJID
)
{
try
{
// If the requesting entity is the user itself or the sender or the requesting entity can probe the presence of the user.
if
(
server
.
getUserManager
().
isRegisteredUser
(
senderJID
)
&&
name
.
equals
(
senderJID
.
getNode
())
||
server
.
getPresenceManager
().
canProbePresence
(
senderJID
,
name
))
{
// If the requesting entity is the user itself or the requesting entity can probe the presence of the user.
if
(
name
!=
null
&&
senderJID
!=
null
&&
server
.
getUserManager
().
isRegisteredUser
(
senderJID
)
&&
(
name
.
equals
(
senderJID
.
getNode
())
||
server
.
getPresenceManager
().
canProbePresence
(
senderJID
,
name
)))
{
Collection
<
DiscoItem
>
discoItems
=
new
ArrayList
<
DiscoItem
>();
for
(
ClientSession
clientSession
:
getSessions
(
name
))
{
discoItems
.
add
(
new
DiscoItem
(
clientSession
.
getAddress
(),
null
,
null
,
null
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment