diff --git a/src/main/java/com/comandante/creeper/npc/Npc.java b/src/main/java/com/comandante/creeper/npc/Npc.java index 159973a7c2d8ec5a412e1b017516b16bf6a984b5..237ecb7e2e2a593ac3254312f6cbfe6e61d9c875 100644 --- a/src/main/java/com/comandante/creeper/npc/Npc.java +++ b/src/main/java/com/comandante/creeper/npc/Npc.java @@ -444,6 +444,11 @@ public class Npc extends CreeperEntity { } public AttackMessage getRandomAttackMessage() { + + if (attackMessages == null || attackMessages.size() == 0) { + return new AttackMessage(AttackMessage.Type.NORMAL, "Somebody for got to configure attack messages. - " + this.getName()); + } + int size = attackMessages.size(); int item = random.nextInt(size); // In real life, the Random object should be rather more shared than this int i = 0;