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