Lets check for null and set error status if so.