avoid null exceptions
This commit is contained in:
parent
e4c33baf86
commit
6cd27d49e5
@ -284,7 +284,10 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
|
||||
private function getTabIndexFor(chatBox:ChatTab):int {
|
||||
return chatTabs.getChildIndex(chatBox);
|
||||
if (chatBox)
|
||||
return chatTabs.getChildIndex(chatBox);
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
||||
private function onTabNavChange():void{
|
||||
|
@ -73,7 +73,7 @@ package org.bigbluebutton.modules.screenshare.services {
|
||||
}
|
||||
|
||||
public function disconnect():void {
|
||||
conn.disconnect();
|
||||
if (conn) conn.disconnect();
|
||||
}
|
||||
|
||||
public function checkIfPresenterIsSharingScreen():void {
|
||||
|
Loading…
Reference in New Issue
Block a user