Add protection to avoid null pointer.

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@2706 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
John Hengstler 2009-10-26 19:15:51 +00:00
parent 343ae2c91a
commit 1c2066a4ae

View File

@ -114,9 +114,11 @@ package org.bigbluebutton.modules.videoconf.business
}
public function stopBroadcasting(e:StopBroadcastEvent):void{
ns.attachCamera(null);
ns.close();
ns = null;
if (ns != null) {
ns.attachCamera(null);
ns.close();
ns = null;
}
}
public function onBWDone():void{