avoid null exceptions

This commit is contained in:
Chad Pilkey 2017-11-29 18:26:44 -05:00
parent e4c33baf86
commit 6cd27d49e5
2 changed files with 5 additions and 2 deletions

View File

@ -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{

View File

@ -73,7 +73,7 @@ package org.bigbluebutton.modules.screenshare.services {
}
public function disconnect():void {
conn.disconnect();
if (conn) conn.disconnect();
}
public function checkIfPresenterIsSharingScreen():void {