Protect against null error object