handling a NPE.