forked from I2P_Developers/i2p.i2p
UPnP: Fix NPE in HTML output on /peers (ticket #1779)
This commit is contained in:
@@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 10;
|
public final static long BUILD = 11;
|
||||||
|
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "-rc";
|
public final static String EXTRA = "-rc";
|
||||||
|
@@ -544,7 +544,10 @@ class UPnP extends ControlPoint implements DeviceChangeListener, EventListener {
|
|||||||
_lastService = serv;
|
_lastService = serv;
|
||||||
_lastArgumentList = getIP.getOutputArgumentList();
|
_lastArgumentList = getIP.getOutputArgumentList();
|
||||||
}
|
}
|
||||||
String rv = _lastArgumentList.getArgument(arg).getValue();
|
Argument a = _lastArgumentList.getArgument(arg);
|
||||||
|
if (a == null)
|
||||||
|
return "";
|
||||||
|
String rv = a.getValue();
|
||||||
return DataHelper.escapeHTML(rv);
|
return DataHelper.escapeHTML(rv);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user