Prevent a possible NPE.