Fix command rewriter npe

This commit is contained in:
Nassim Jahnke 2022-05-15 18:11:36 +02:00
parent 1d5ae0e3e0
commit 48a7fdc1d1
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -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;