From 09547a9eed892800e488047768649b0b6c4a96f4 Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 11 Apr 2024 11:59:22 -0500 Subject: [PATCH] fix: Fixes tests. --- src/main/java/org/jitsi/jigasi/JvbConference.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jitsi/jigasi/JvbConference.java b/src/main/java/org/jitsi/jigasi/JvbConference.java index 9c608f2d9..d8e008d07 100644 --- a/src/main/java/org/jitsi/jigasi/JvbConference.java +++ b/src/main/java/org/jitsi/jigasi/JvbConference.java @@ -1227,7 +1227,7 @@ else if (ChatRoomMemberPresenceChangeEvent.MEMBER_UPDATED { gatewaySession.notifyChatRoomMemberLeft(member); logger.info( - this.callContext + " Member left : " + member.getRole() + this.callContext + " Member left : " + member.getRole() + " " + member.getContactAddress()); jigasiChatRoomMembers.remove(member.getName()); @@ -1965,6 +1965,12 @@ public void setLobbyEnabled(boolean value) */ private String getMeetingId() { + // in case when running unittests + if (this.getConnection() == null) + { + return null; + } + if (this.meetingId == null) { try @@ -1994,6 +2000,12 @@ private String getMeetingId() */ private void updateFromRoomConfiguration() { + // in case when running unittests + if (this.getConnection() == null) + { + return; + } + try { DiscoverInfo info = ServiceDiscoveryManager.getInstanceFor(getConnection()).