It looks to me like the bug is still in the upstream code. `headers_array` is only allocated if `headers` is not null, and that will be null if `resource` or `response` is null.
It looks to me like the bug is still in the upstream code. `headers_array` is only allocated if `headers` is not null, and that will be null if `resource` or `response` is null.