UPnP: Prevent NPE on socket creation fail (ticket #1681)

This commit is contained in:
zzz
2016-11-13 16:30:51 +00:00
parent 75d599e061
commit 16a551f7ce

View File

@ -92,6 +92,9 @@ public class HTTPUSocket
{
if (0 < localAddr.length())
return localAddr;
// I2P prevent NPE #1681
if (ssdpUniSock == null)
return "";
return ssdpUniSock.getLocalAddress().getHostAddress();
}