It should be `(error != NULL)`, otherwise you're dereferencing a potentially NULL pointer.