forked from I2P_Developers/i2p.i2p
UPnP: Prevent NPE after ParserException
This commit is contained in:
@ -174,6 +174,10 @@ public class NotifyRequest extends SOAPRequest
|
|||||||
public PropertyList getPropertyList() {
|
public PropertyList getPropertyList() {
|
||||||
PropertyList properties = new PropertyList();
|
PropertyList properties = new PropertyList();
|
||||||
Node varSetNode = getEnvelopeNode();
|
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++){
|
for (int i = 0; i<varSetNode.getNNodes(); i++){
|
||||||
Node propNode = varSetNode.getNode(i);
|
Node propNode = varSetNode.getNode(i);
|
||||||
if (propNode == null)
|
if (propNode == null)
|
||||||
|
Reference in New Issue
Block a user