fix for npe

This commit is contained in:
Brianna 2019-08-06 15:24:35 -04:00
parent 865b9f2d32
commit 78db6bee15

View File

@ -149,6 +149,7 @@ public abstract class AbstractGUI implements Listener {
if (lore != null && lore.length != 0) { if (lore != null && lore.length != 0) {
List<String> newLore = new ArrayList<>(); List<String> newLore = new ArrayList<>();
for (String line : lore) { for (String line : lore) {
if (line == null) continue;
for (String string : line.split("\\s*\\r?\\n\\s*")) { for (String string : line.split("\\s*\\r?\\n\\s*")) {
int lastIndex = 0; int lastIndex = 0;
for (int n = 0; n < string.length(); n++) { for (int n = 0; n < string.length(); n++) {