From 48a7fdc1d1ac74e52a1f335f3c0d284988f3b801 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sun, 15 May 2022 18:11:36 +0200 Subject: [PATCH] Fix command rewriter npe --- .../com/viaversion/viaversion/rewriter/CommandRewriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viaversion/rewriter/CommandRewriter.java b/common/src/main/java/com/viaversion/viaversion/rewriter/CommandRewriter.java index a9498f937..6f2984c5d 100644 --- a/common/src/main/java/com/viaversion/viaversion/rewriter/CommandRewriter.java +++ b/common/src/main/java/com/viaversion/viaversion/rewriter/CommandRewriter.java @@ -170,7 +170,7 @@ public class CommandRewriter { * @return new argument type, or null if it should be removed */ public @Nullable String handleArgumentType(String argumentType) { - if (protocol.getMappingData().getArgumentTypeMappings() != null) { + if (protocol.getMappingData() != null && protocol.getMappingData().getArgumentTypeMappings() != null) { return protocol.getMappingData().getArgumentTypeMappings().mappedIdentifier(argumentType); } return argumentType;