Post "how to avoid NPE"