i2psnark: Fix NPE caused by URL-to-URI conversion in -2 (ticket #1715)

Fix some other similar places
This commit is contained in:
zzz
2015-11-28 12:54:41 +00:00
parent a03339b120
commit 415b51bc49
5 changed files with 28 additions and 6 deletions

View File

@ -907,6 +907,8 @@ public class TrackerClient implements Runnable {
if (!"http".equals(url.getScheme()))
return null;
String host = url.getHost();
if (host == null)
return null;
if (host.endsWith(".i2p"))
return ConvertToHash.getHash(host);
if (host.equals("i2p")) {