* i2psnark: Fix add torrent NPE

This commit is contained in:
zzz
2014-08-13 19:17:26 +00:00
parent 9c38e1e191
commit eb97ef4cb2
3 changed files with 6 additions and 2 deletions

View File

@ -484,7 +484,7 @@ public class Snark
this.torrent = torrent;
this.infoHash = ih;
this.additionalTrackerURL = trackerURL;
this.rootDataDir = new File(rootDir);
this.rootDataDir = rootDir != null ? new File(rootDir) : null; // null only for FetchAndAdd extension
stopped = true;
id = generateID();