the8472 / mldht

Bittorrent Mainline DHT implementation in java
Mozilla Public License 2.0
147 stars 45 forks source link

NPE on closedown #17

Closed parg closed 6 years ago

parg commented 6 years ago

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)

the8472 commented 6 years ago

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

the8472 commented 6 years ago

should be fixed with b6467a803b