You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you pass the wrong number of arguments to Operation<?>.call() and one of the arguments is null, a NullPointerException is raised instead of an IncorrectArgumentCountException due to calling getClass() on a null Object.
Example:
@WrapOperation(at = @At(value = "INVOKE", target = "Lme/jellysquid/mods/sodium/client/render/chunk/cull/graph/ChunkGraphIterationQueue;add(Lme/jellysquid/mods/sodium/client/render/chunk/cull/graph/ChunkGraphNode;Lnet/minecraft/util/math/Direction;)V", remap = false), method = "initSearch(Lnet/minecraft/client/render/Camera;Lme/jellysquid/mods/sodium/client/util/math/FrustumExtended;IZ)V", remap = true)
privatevoidinitSearch_markVisible(ChunkGraphIterationQueuequeue, ChunkGraphNodenode, Directiondirection,
Operation<Void> original) {
// omit the queue argument to cause the argument count check to fail// direction will always be null, causing an NPEoriginal.call(node, direction);
}
---- Minecraft Crash Report ----
// You're mean.
Time: 11/12/24, 8:15 PM
Description: Unexpected error
java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "it" is null
at knot//com.llamalad7.mixinextras.injector.wrapoperation.WrapOperationRuntime.lambda$checkArgumentCount$0(WrapOperationRuntime.java:14)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at knot//com.llamalad7.mixinextras.injector.wrapoperation.WrapOperationRuntime.checkArgumentCount(WrapOperationRuntime.java:14)
at knot//me.jellysquid.mods.sodium.client.render.chunk.cull.graph.ChunkGraphCuller.mixinextras$bridge$add$21(ChunkGraphCuller.java)
at knot//me.jellysquid.mods.sodium.client.render.chunk.cull.graph.ChunkGraphCuller.wrapOperation$zcd000$pastry$initSearch_markVisible(ChunkGraphCuller.java:551)
at knot//me.jellysquid.mods.sodium.client.render.chunk.cull.graph.ChunkGraphCuller.initSearch(ChunkGraphCuller.java:108)
at knot//me.jellysquid.mods.sodium.client.render.chunk.cull.graph.ChunkGraphCuller.computeVisible(ChunkGraphCuller.java:42)
at knot//me.jellysquid.mods.sodium.client.render.chunk.ChunkRenderManager.iterateChunks(ChunkRenderManager.java:153)
at knot//me.jellysquid.mods.sodium.client.render.chunk.ChunkRenderManager.update(ChunkRenderManager.java:123)
at knot//me.jellysquid.mods.sodium.client.render.SodiumWorldRenderer.updateChunks(SodiumWorldRenderer.java:189)
at knot//net.minecraft.client.render.WorldRenderer.setupTerrain(WorldRenderer.java:4168)
at knot//net.minecraft.client.render.WorldRenderer.render(WorldRenderer.java:1107)
at knot//net.minecraft.client.render.GameRenderer.renderWorld(GameRenderer.java:717)
at knot//net.minecraft.client.render.GameRenderer.render(GameRenderer.java:540)
at knot//net.minecraft.client.MinecraftClient.render(MinecraftClient.java:1021)
at knot//net.minecraft.client.MinecraftClient.run(MinecraftClient.java:654)
at knot//net.minecraft.client.main.Main.main(Main.java:215)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at knot//com.llamalad7.mixinextras.injector.wrapoperation.WrapOperationRuntime.lambda$checkArgumentCount$0(WrapOperationRuntime.java:14)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at knot//com.llamalad7.mixinextras.injector.wrapoperation.WrapOperationRuntime.checkArgumentCount(WrapOperationRuntime.java:14)
at knot//me.jellysquid.mods.sodium.client.render.chunk.cull.graph.ChunkGraphCuller.mixinextras$bridge$add$21(ChunkGraphCuller.java)
at knot//me.jellysquid.mods.sodium.client.render.chunk.cull.graph.ChunkGraphCuller.wrapOperation$zcd000$pastry$initSearch_markVisible(ChunkGraphCuller.java:551)
at knot//me.jellysquid.mods.sodium.client.render.chunk.cull.graph.ChunkGraphCuller.initSearch(ChunkGraphCuller.java:108)
at knot//me.jellysquid.mods.sodium.client.render.chunk.cull.graph.ChunkGraphCuller.computeVisible(ChunkGraphCuller.java:42)
at knot//me.jellysquid.mods.sodium.client.render.chunk.ChunkRenderManager.iterateChunks(ChunkRenderManager.java:153)
at knot//me.jellysquid.mods.sodium.client.render.chunk.ChunkRenderManager.update(ChunkRenderManager.java:123)
at knot//me.jellysquid.mods.sodium.client.render.SodiumWorldRenderer.updateChunks(SodiumWorldRenderer.java:189)
at knot//net.minecraft.client.render.WorldRenderer.setupTerrain(WorldRenderer.java:4168)
at knot//net.minecraft.client.render.WorldRenderer.render(WorldRenderer.java:1107)
at knot//net.minecraft.client.render.GameRenderer.renderWorld(GameRenderer.java:717)
The text was updated successfully, but these errors were encountered:
If you pass the wrong number of arguments to
Operation<?>.call()
and one of the arguments is null, a NullPointerException is raised instead of anIncorrectArgumentCountException
due to callinggetClass()
on a null Object.Example:
The text was updated successfully, but these errors were encountered: