Bug Closed · Could not replicate

java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "it.unimi.dsi.fastutil.objects.ObjectArrayList.get(int)" because "this.wrapped" is null

#6565 opened by Unknown 1 year ago

Unknownreported this bug

The essence of the problem: when I use a projectile, I randomly get the following error in the console:

[20:54:33 WARN]: java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "it.unimi.dsi.fastutil.objects.ObjectArrayList.get(int)" because "this.wrapped" is null
[20:54:33 WARN]:        at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
[20:54:33 WARN]:        at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
[20:54:33 WARN]:        at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1159)
[20:54:33 WARN]:        at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483)
[20:54:33 WARN]:        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
[20:54:33 WARN]:        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1310)
[20:54:33 WARN]:        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1841)
[20:54:33 WARN]:        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1806)
[20:54:33 WARN]:        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
[20:54:33 WARN]: Caused by: java.lang.NullPointerException: Cannot invoke "it.unimi.dsi.fastutil.objects.ObjectArrayList.get(int)" because "this.wrapped" is null
[20:54:33 WARN]:        at it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap$MapIterator.nextEntry(Object2ObjectOpenHashMap.java:638)
[20:54:33 WARN]:        at it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap$EntryIterator.next(Object2ObjectOpenHashMap.java:733)
[20:54:33 WARN]:        at it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap$EntryIterator.next(Object2ObjectOpenHashMap.java:728)
[20:54:33 WARN]:        at ModelEngine-4.0.8.jar//com.ticxo.modelengine.api.model.ModelUpdaters.lambda$tick$4(ModelUpdaters.java:60)
[20:54:33 WARN]:        at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
[20:54:33 WARN]:        ... 6 more

This error occurs on the stable and latest version of ModelEngine.

You can check my video about it - https://youtu.be/OShkZeEeQQc

Unknowncommented

I noticed that if the projectile is a block, there’s no error, but if it’s a mob projectile, this error appears with some probability.

Unknowncommented

can you add the skill with which you get this error? will close for now, as we can not replicate this. you can reopen with more information on how to replicate this.

Sign in to join the discussion.