add NPE snippet