UPnP: Prevent NPE after ParserException

This commit is contained in:
zzz
2009-05-28 03:35:54 +00:00
parent 87953c4b93
commit 665b691711

View File

@ -174,6 +174,10 @@ public class NotifyRequest extends SOAPRequest
public PropertyList getPropertyList() {
PropertyList properties = new PropertyList();
Node varSetNode = getEnvelopeNode();
// I2P change: ParserException caught in getRootNode() causes
// getEnvelopeNode() to return null
if (varSetNode == null)
return properties;
for (int i = 0; i<varSetNode.getNNodes(); i++){
Node propNode = varSetNode.getNode(i);
if (propNode == null)