ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/client/MonitorManager.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/MonitorManager.java (file contents):
Revision 1.19 by tdb, Mon Feb 24 20:18:46 2003 UTC vs.
Revision 1.20 by tdb, Fri Jul 25 14:35:29 2003 UTC

# Line 199 | Line 199 | public class MonitorManager extends Thread {
199                  // skip the rest of this loop iteration
200                  continue;
201              }
202 +
203 +            if(packet == null) {
204 +                _logger.write(toString(), Logger.WARNING, "Got a null packet when parsing: "+xml);
205 +                // skip to next packet
206 +                continue;
207 +            }
208              
209              // examine the packet and place it in the relevant outgoing queue
210 <            if(packet.getParam("packet.attributes.type").equals("data")) {
210 >            if(packet.getParam("packet.attributes.type") != null &&
211 >               packet.getParam("packet.attributes.type").equals("data")) {
212                  _dataQueue.add(packet);
213              }
214              else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines