Ok so it is not a trivial "check for NULL before dereferencing and return error" five-minute-fix type situation.
Even if is (and I don't know that it is not) I would expect a user to contribute a verified patch or PR that is known to solve the problem.