Correct a NPE.