Author: sebawagner
Date: Thu Feb 23 18:46:21 2012
New Revision: 1292892

URL: http://svn.apache.org/viewvc?rev=1292892&view=rev
Log:
Some minor fixes to prevent null pointer in commonVideoViewContent

Modified:
    
incubator/openmeetings/trunk/singlewebapp/WebContent/src/modules/conference/participants/participants.lzx
    
incubator/openmeetings/trunk/singlewebapp/WebContent/swf10/commonVideoViewContentSWF10.lzx

Modified: 
incubator/openmeetings/trunk/singlewebapp/WebContent/src/modules/conference/participants/participants.lzx
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/WebContent/src/modules/conference/participants/participants.lzx?rev=1292892&r1=1292891&r2=1292892&view=diff
==============================================================================
--- 
incubator/openmeetings/trunk/singlewebapp/WebContent/src/modules/conference/participants/participants.lzx
 (original)
+++ 
incubator/openmeetings/trunk/singlewebapp/WebContent/src/modules/conference/participants/participants.lzx
 Thu Feb 23 18:46:21 2012
@@ -77,7 +77,11 @@
     <method name="as3ConnectionSuccess">
        if ($debug) Debug.write("as3ConnectionSuccess continue loading");
        //set default values and get already availible streams
-        this.getRoomModeratorsByRoomId.doCall();
+       //it can happen that if you click to exit the room the views are not 
+       //not cleaned up yet and you receive this event from the LocalConnection
+       if (this["getRoomModeratorsByRoomId"]) {
+            this.getRoomModeratorsByRoomId.doCall();
+       }
     </method>
     
     

Modified: 
incubator/openmeetings/trunk/singlewebapp/WebContent/swf10/commonVideoViewContentSWF10.lzx
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/WebContent/swf10/commonVideoViewContentSWF10.lzx?rev=1292892&r1=1292891&r2=1292892&view=diff
==============================================================================
--- 
incubator/openmeetings/trunk/singlewebapp/WebContent/swf10/commonVideoViewContentSWF10.lzx
 (original)
+++ 
incubator/openmeetings/trunk/singlewebapp/WebContent/swf10/commonVideoViewContentSWF10.lzx
 Thu Feb 23 18:46:21 2012
@@ -324,6 +324,10 @@
         <![CDATA[
             //if ($debug) Debug.write("setSpeakingByPos ",publicSID,bool);
             var obj = this.getVideoObjectByPublicSID(publicSID);
+            if (obj == null) {
+               if ($debug) Debug.warn("Could not find user for 
setSpeakingByPos ",publicSID,bool);
+               return;
+            }
             if (bool){
                 obj._loudness.loudness.setAttribute('opacity',1);
             } else {


Reply via email to