3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-03 08:41:05 +02:00

Fix command rewriter npe

Dieser Commit ist enthalten in:
Nassim Jahnke 2022-05-15 18:11:36 +02:00
Ursprung 1d5ae0e3e0
Commit 48a7fdc1d1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -170,7 +170,7 @@ public class CommandRewriter {
* @return new argument type, or null if it should be removed * @return new argument type, or null if it should be removed
*/ */
public @Nullable String handleArgumentType(String argumentType) { 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 protocol.getMappingData().getArgumentTypeMappings().mappedIdentifier(argumentType);
} }
return argumentType; return argumentType;