1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

Lets check for possible null

This commit is contained in:
Zrips 2018-10-12 18:16:15 +03:00
parent 804933a294
commit 8601b24ed0

View File

@ -580,6 +580,7 @@ public class ConfigManager {
} }
} }
} }
if (material != null)
GUIitem = material.newItemStack(); GUIitem = material.newItemStack();
if (guiSection.contains("Enchantments")) { if (guiSection.contains("Enchantments")) {
List<String> enchants = guiSection.getStringList("Enchantments"); List<String> enchants = guiSection.getStringList("Enchantments");