Mojira Archive
MC-122608

Minecraft crashes when typing in a block-related command in front of an entity

The bug

Minecraft crashes when typing in a block-related command when standing in front of an entity/looking at an entity, for instance /execute store result block.
The game crashes as soon as it tries to autocomplete the coordinates.

Crash report

Description: charTyped event handler

java.lang.NullPointerException: charTyped event handler
	at bwu.a(SourceFile:76)
	at ci.listSuggestions(SourceFile:66)
	at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:65)
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:345)
	at bpi.h(SourceFile:163)
	at bpi.a(SourceFile:97)
	at bpi$$Lambda$591/1168769758.accept(Unknown Source)
	at bnr.a(SourceFile:146)
	at bnr.b(SourceFile:141)
	at bnr.charTyped(SourceFile:375)
	at bon.charTyped(SourceFile:40)
	at bmj.a(SourceFile:360)
	at bmj$$Lambda$597/1579858776.run(Unknown Source)
	at bqg.a(SourceFile:428)
	at bmj.a(SourceFile:360)
	at bmj$$Lambda$107/1263927050.invoke(Unknown Source)
	at org.lwjgl.glfw.GLFWCharModsCallbackI.callback(GLFWCharModsCallbackI.java:23)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:2520)
	at bmw.a(SourceFile:282)
	at bmm.b(SourceFile:846)
	at bmm.a(SourceFile:381)
	at net.minecraft.client.main.Main.main(SourceFile:134)

Fixed

Maximilian Herczegh

[Mojang] Nathan Adams

2017-11-27, 09:12 PM

2018-01-09, 02:05 PM

2018-01-09, 02:05 PM

18

9

Confirmed

coordinates, crash, tab-completion

Minecraft 17w48a - Minecraft 18w01aMinecraft 17w48a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a

Minecraft 18w02a