mirror of
https://github.com/songoda/SongodaCore.git
synced 2025-02-03 13:11:25 +01:00
fix for npe
This commit is contained in:
parent
865b9f2d32
commit
78db6bee15
@ -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++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user