Guard possible null pointer dereference, further investigation is required to determine a better solution.