Prevent a potential NPE.