Preventing possible NPE