this will fix my error?
EDIT
L2ItemInstance item = noble.getInventory().getItemByObjectId(_objectId);
int lolz0r = item.getItem().getCrystalType();
if (item != null)
{
if (lolz0r == L2Item.CRYSTAL_S || lolz0r == L2Item.CRYSTAL_S80 || lolz0r == L2Item.CRYSTAL_S84)
{
noble.sendMessage("You cannot use S grade equipment at the Grand Olympiad games.");
return false;
}
}
when i put in the end the }then in if (item != null) say redudant null check:the variable item cannot be null at this location but if i delete } then everything its ok