I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Verified Commit 33397433 authored by zzz's avatar zzz
Browse files

UPnP: Fix NPE (android gitlab ticket #1)

parent af6ecde8
No related branches found
No related tags found
No related merge requests found
......@@ -202,8 +202,11 @@ public class HTTPUSocket
ssdpUniSock.send(dgmPacket);
}
catch (Exception e) {
Debug.warning("addr = " +ssdpUniSock.getLocalAddress().getHostName());
Debug.warning("port = " + ssdpUniSock.getLocalPort());
// I2P prevent NPE android gitlab #1
if (ssdpUniSock != null) {
Debug.warning("addr = " +ssdpUniSock.getLocalAddress().getHostName());
Debug.warning("port = " + ssdpUniSock.getLocalPort());
}
Debug.warning(e);
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment