Fixed AbstractItemPacket NPE.

This commit is contained in:
MobiusDev 2016-07-07 20:20:15 +00:00
parent b7f07ad5a7
commit 75251f7c00

View File

@ -170,7 +170,7 @@ public abstract class AbstractItemPacket extends AbstractMaskPacket<ItemListType
mask |= ItemListType.VISUAL_ID.getMask();
}
if (!item.getSoulCrystalOptions().isEmpty() || !item.getSoulCrystalSpecialOptions().isEmpty())
if (((item.getSoulCrystalOptions() != null) && !item.getSoulCrystalOptions().isEmpty()) || ((item.getSoulCrystalSpecialOptions() != null) && !item.getSoulCrystalSpecialOptions().isEmpty()))
{
mask |= ItemListType.SOUL_CRYSTAL.getMask();
}