Preventing a NPE.