Avoid NPE during Dereferencing