mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
Kad: Fix NPE when removing yourself
This commit is contained in:
@@ -276,6 +276,8 @@ public class KBucketSet<T extends SimpleDataStructure> {
|
||||
try {
|
||||
kbucket = getBucket(entry);
|
||||
} finally { releaseReadLock(); }
|
||||
if (kbucket == null) // us
|
||||
return false;
|
||||
boolean removed = kbucket.remove(entry);
|
||||
return removed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user