NPE guard