forked from I2P_Developers/i2p.i2p
Ratchet: Fix NPE ratcheting IB NSR tagset
This commit is contained in:
@ -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 = 14;
|
||||
public final static long BUILD = 15;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
@ -450,9 +450,12 @@ class RatchetTagSet implements TagSetHandle {
|
||||
int toTrim = 0;
|
||||
int tagnum;
|
||||
while ((tagnum = _sessionTags.keyAt(toTrim)) < tooOld) {
|
||||
int kidx = _sessionKeys.indexOfKey(tagnum);
|
||||
if (kidx >= 0)
|
||||
_sessionKeys.removeAt(kidx);
|
||||
if (_sessionKeys != null) {
|
||||
// only for ES tagsets
|
||||
int kidx = _sessionKeys.indexOfKey(tagnum);
|
||||
if (kidx >= 0)
|
||||
_sessionKeys.removeAt(kidx);
|
||||
}
|
||||
if (_lsnr != null)
|
||||
_lsnr.expireTag(_sessionTags.valueAt(toTrim), this);
|
||||
toTrim++;
|
||||
|
Reference in New Issue
Block a user