Fix #1358 by checking for null before processing

This commit is contained in:
Myles 2019-05-31 20:43:02 +01:00
parent 89dfcaf626
commit 0137105a6d
2 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,7 @@ public class ChatRewriter {
}
private static void processTranslate(BaseComponent component) {
if (component == null) return;
if (component instanceof TranslatableComponent) {
String oldTranslate = ((TranslatableComponent) component).getTranslate();
String newTranslate;

View File

@ -18,6 +18,7 @@ public class InventoryNameRewriter {
}
private static void processTranslate(BaseComponent component) {
if (component == null) return;
if (component instanceof TranslatableComponent) {
String oldTranslate = ((TranslatableComponent) component).getTranslate();