Fixed quest reward null pointer exception.

This commit is contained in:
Luis C.M committed 2022-12-19 16:09:18 -06:00
1 parent 3d498814f9
commit cfac349265
1 file changed
+1 -1
@@ -354,7 +354,7 @@ public class NoppesUtilPlayer {
while(var8.hasNext()) {
ItemStack item = (ItemStack)var8.next();
if (item.stackSize > 0) {
if (item != null && item.stackSize > 0) {
IItemStack iStack = NpcAPI.Instance().getIItemStack(item);
if (iStack != null){
list.add(iStack);