mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 18:45:31 +01:00
Fixed NPE in PermissionCheck pre shop creation
This commit is contained in:
parent
a9f9add12a
commit
4ba69135cb
@ -33,8 +33,7 @@ public class PermissionChecker implements Listener {
|
||||
|
||||
ItemStack item = MaterialUtil.getItem(itemLine);
|
||||
|
||||
if (!Permission.has(player, SHOP_CREATION_ID + Integer.toString(item.getTypeId()))) {
|
||||
event.setOutcome(NO_PERMISSION);
|
||||
if (item == null || Permission.has(player, SHOP_CREATION_ID + Integer.toString(item.getTypeId()))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user