mojira.dev
MC-256502

Crash when pressing certain buttons while on spectator mode

The bug

A crash occurs when pressing certain buttons while on spectator mode.

[14:51:20] [Render thread/ERROR]: Unreported exception thrown!
java.lang.NullPointerException: Cannot invoke "exp.a()" because "$$0" is null
	at esn.a(SourceFile:25) ~[22w42a.jar:?]
	at com.google.common.collect.ComparatorOrdering.compare(ComparatorOrdering.java:40) ~[guava-31.0.1-jre.jar:?]
	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355) ~[?:?]
	at java.util.TimSort.sort(TimSort.java:220) ~[?:?]
	at java.util.Arrays.sort(Arrays.java:1233) ~[?:?]
	at com.google.common.collect.Ordering.sortedCopy(Ordering.java:854) ~[guava-31.0.1-jre.jar:?]
	at esn.<init>(SourceFile:34) ~[22w42a.jar:?]
	at esh.<init>(SourceFile:15) ~[22w42a.jar:?]
	at esi.<init>(SourceFile:53) ~[22w42a.jar:?]
	at eld.b(SourceFile:161) ~[22w42a.jar:?]
	at eii.a(SourceFile:111) ~[22w42a.jar:?]
	at eii.c(SourceFile:165) ~[22w42a.jar:?]
	at bak.execute(SourceFile:103) ~[22w42a.jar:?]
	at eii.b(SourceFile:165) ~[22w42a.jar:?]
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43) ~[lwjgl-glfw-3.3.1.jar:build 7]
	at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.3.1.jar:build 7]
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3403) ~[lwjgl-glfw-3.3.1.jar:build 7]
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(SourceFile:204) ~[22w42a.jar:?]
	at ech.e(SourceFile:310) ~[22w42a.jar:?]
	at eih.f(SourceFile:1207) ~[22w42a.jar:?]
	at eih.e(SourceFile:776) [22w42a.jar:?]
	at net.minecraft.client.main.Main.a(SourceFile:244) [22w42a.jar:?]
	at net.minecraft.client.main.Main.main(SourceFile:51) [22w42a.jar:?]

Linked issues

Attachments

Comments 3

I should probably mention. The stronghold was already generated. And it crashed upon it being reloaded (If it's even related to the stronghold)

Turns out it was not related to the stronghold generation 😛

This doesn't always happen. You can for example watch other players in spectator mode by clicking on them. Or you can move around or right click. Middle click crashes the game. chat and commands don't. But the game crashes when trying to tp to them with the number  keys

CrumbledHam

boq

Confirmed

Platform

Very Important

Crash

22w42a

22w43a

Retrieved