Fixed compiler warning in CatchNPE