* 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();

View File

@ -1,3 +1,7 @@
2014-08-13 zzz
* Console: Escaping fix (ticket #1346)
* i2psnark: Fix add torrent NPE
2014-08-10 zzz
Prop from i2p.i2p.zzz.snarkconfig:
* i2psnark:

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 3;
public final static long BUILD = 4;
/** for example "-test" */
public final static String EXTRA = "";