Fixed NPE

#51
This commit is contained in:
Kai committed 2016-05-28 05:18:19 +02:00
1 parent cb8efe6874
commit e296ba2a2a
1 file changed
+3
@@ -528,6 +528,9 @@ public class QuickShop extends JavaPlugin {
public CustomItemName getCustomItemNames(ItemStack is) {
List<CustomItemName> list = customItemsName.get(is.getType());
if (list==null) {
return null;
}
for (CustomItemName cin : list) {
if (cin.matches(is)) {
return cin;