I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 80fadb45 authored by zzz's avatar zzz
Browse files

Kad: Fix NPE when removing yourself

parent 8658c239
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment