[mono] Fix passing of NULL via mono_runtime_invoke to method expecting nullable ...
authorVlad Brezae <brezaevlad@gmail.com>
Tue, 13 Dec 2022 13:17:29 +0000 (15:17 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Dec 2022 13:17:29 +0000 (15:17 +0200)
commit4efdaf52cc2bc78d9bf1d773b389951a3bb2d860
tree8ed57132f7a42cb3b0ecddb27a5555c16121f8ef
parent109c561fa907825ebf2a5cdbc8812b4aaff1a8dd
[mono] Fix passing of NULL via mono_runtime_invoke to method expecting nullable (#79597)

The code was always trying to unbox the boxed vt, not accounting for NULL.
src/mono/mono/metadata/object.c