mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-10-29 19:57:28 +00:00
SPARK-2369: Prevent NPE in User-has-joined event
This commit is contained in:
parent
90defcc4bb
commit
27e1d35bce
@ -956,7 +956,9 @@ public class ChatContainer extends SparkTabbedPane implements MessageListener, C
|
||||
-> {
|
||||
for (final ChatRoomListener listener : chatRoomListeners) {
|
||||
try {
|
||||
if (userid != null) {
|
||||
listener.userHasJoined(room, userid.toString());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.error("A ChatRoomListener (" + listener + ") threw an exception while processing a 'user joined' event for user '" + userid + "' in room: " + room, e);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user