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
bebbefd5
Commit
bebbefd5
authored
Dec 13, 2016
by
Dave Cridland
Committed by
daryl herzmann
Dec 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1137 Check room is not null before logging (#696)
parent
6366c09f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
MultiUserChatServiceImpl.java
...vesoftware/openfire/muc/spi/MultiUserChatServiceImpl.java
+5
-3
No files found.
src/java/org/jivesoftware/openfire/muc/spi/MultiUserChatServiceImpl.java
View file @
bebbefd5
...
@@ -781,15 +781,17 @@ public class MultiUserChatServiceImpl implements Component, MultiUserChatService
...
@@ -781,15 +781,17 @@ public class MultiUserChatServiceImpl implements Component, MultiUserChatService
private
void
removeChatRoom
(
String
roomName
,
boolean
notify
)
{
private
void
removeChatRoom
(
String
roomName
,
boolean
notify
)
{
MUCRoom
room
=
rooms
.
remove
(
roomName
);
MUCRoom
room
=
rooms
.
remove
(
roomName
);
Log
.
info
(
"removing chat room:"
+
roomName
+
"|"
+
room
.
getClass
().
getName
());
if
(
room
instanceof
LocalMUCRoom
)
GroupEventDispatcher
.
removeListener
((
LocalMUCRoom
)
room
);
if
(
room
!=
null
)
{
if
(
room
!=
null
)
{
Log
.
info
(
"removing chat room:"
+
roomName
+
"|"
+
room
.
getClass
().
getName
());
if
(
room
instanceof
LocalMUCRoom
)
GroupEventDispatcher
.
removeListener
((
LocalMUCRoom
)
room
);
totalChatTime
+=
room
.
getChatLength
();
totalChatTime
+=
room
.
getChatLength
();
if
(
notify
)
{
if
(
notify
)
{
// Notify other cluster nodes that a room has been removed
// Notify other cluster nodes that a room has been removed
CacheFactory
.
doClusterTask
(
new
RoomRemovedEvent
((
LocalMUCRoom
)
room
));
CacheFactory
.
doClusterTask
(
new
RoomRemovedEvent
((
LocalMUCRoom
)
room
));
}
}
}
else
{
Log
.
info
(
"No chat room during removal: "
+
roomName
);
}
}
}
}
...
...
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