fix snark npe caused by last checkin

This commit is contained in:
zzz
2009-10-04 14:06:14 +00:00
parent d4f3952a90
commit 9b97d32ea8
4 changed files with 8 additions and 2 deletions

View File

@ -334,6 +334,7 @@ public class I2PSnarkUtil {
return rv;
}
/** @param ot non-null */
public void setOpenTrackerString(String ot) {
_opts.put(PROP_OPENTRACKERS, ot);
}

View File

@ -194,7 +194,9 @@ public class SnarkManager implements Snark.CompleteListener {
_util.setProxy(eepHost, eepPort);
_util.setMaxUploaders(getInt(PROP_UPLOADERS_TOTAL, Snark.MAX_TOTAL_UPLOADERS));
_util.setMaxUpBW(getInt(PROP_UPBW_MAX, DEFAULT_MAX_UP_BW));
_util.setOpenTrackerString(_config.getProperty(I2PSnarkUtil.PROP_OPENTRACKERS));
String ot = _config.getProperty(I2PSnarkUtil.PROP_OPENTRACKERS);
if (ot != null)
_util.setOpenTrackerString(ot);
getDataDir().mkdirs();
}

View File

@ -1,3 +1,6 @@
2009-10-04 zzz
* i2psnark: Fix NPE caused by last checkin (thanks wuxia!)
2009-10-02 zzz
* BuildMessageTest: Move out of the lib
* i2psnark: Fix changing opentracker list

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 = 21;
public final static long BUILD = 22;
/** for example "-test" */
public final static String EXTRA = "-rc";
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;