Preventing potential NPE.