don't throw error if return code is null