{
L2NpcInstance target = (L2NpcInstance) obj;
int monsterTemplate = target.getTemplate().npcId;
L2NpcTemplate template1 = NpcTable.getInstance().getTemplate(monsterTemplate);
if(template1 == null)
{
activeChar.sendMessage("Incorrect monster template.");
_log.warning("ERROR: NPC " + target.getObjectId() + " has a 'null' template.");