Author: seba.wagner
Date: Mon Feb  2 00:50:57 2009
New Revision: 1867

Modified:
     
trunk/webapp/src/app/org/openmeetings/app/remote/red5/ScopeApplicationAdapter.java

Log:
This seems to workaround the NullPointer Exception in the roomLeaveByScope  
Method.

Modified:  
trunk/webapp/src/app/org/openmeetings/app/remote/red5/ScopeApplicationAdapter.java
==============================================================================
---  
trunk/webapp/src/app/org/openmeetings/app/remote/red5/ScopeApplicationAdapter.java
       
(original)
+++  
trunk/webapp/src/app/org/openmeetings/app/remote/red5/ScopeApplicationAdapter.java
       
Mon Feb  2 00:50:57 2009
@@ -262,6 +262,10 @@
                        
                        log.debug("currentScope "+currentScope);
                        
+                       //Remove User AFTER cause otherwise the currentClient 
Object is NULL ?!
+                       //OR before ?!?!
+                       
this.clientListManager.removeClient(currentClient.getStreamid());
+                       
                        if (currentScope != null && 
currentScope.getConnections() != null) {
                                //Notify Users of the current Scope
                                Iterator<IConnection> it = 
currentScope.getConnections();
@@ -290,8 +294,7 @@
                                }       
                        }
                        
-                       //Remove User AFTER cause otherwise the currentClient 
Object is NULL ?!
-                       
this.clientListManager.removeClient(currentClient.getStreamid());
+                       
                        //If this Room is empty clear the Room Poll List
                        HashMap<String,RoomClient> rcpList =  
this.clientListManager.getClientListByRoom(room_id);
                        log.debug("roomLeave rcpList size: "+rcpList.size());

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to