Prevent NPE.