the8472/mldht

NPE on closedown

Closed this issue · 2 comments

parg commented

Getting a shed-load of when closing down

java.lang.NullPointerException
at lbms.plugins.mldht.kad.DHT$2.stateTransition(DHT.java:639)
at lbms.plugins.mldht.kad.RPCCall.stateTransition(RPCCall.java:218)
at lbms.plugins.mldht.kad.RPCCall.checkStallOrTimeout(RPCCall.java:172)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at the8472.utils.concurrent.NonblockingScheduledExecutor$SchedF.run(NonblockingScheduledExecutor.java:296)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.base/java.lang.Thread.run(Thread.java:844)

Those should be harmless but I think I can add some cleanup to avoid them occurring.

should be fixed with b6467a8