Defensive test for NRE