mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 13:12:15 +00:00
Kad: Fix NPE when removing yourself
This commit is contained in:
1 parent
8658c23974
commit
80fadb4580
1 file changed
+2
@@ -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