Marshal.GetDelegateForFunctionPointer throws a null reference exception when called with a zero value IntPtr
System.ArgumentNullException: Value cannot be null.
Parameter name: ptr
at System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr ptr, Type t)
at System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer[TDelegate](IntPtr ptr)
at Unity.SymbolResolver.TryResolveFunction[T](String name, T& del)
at Unity.SymbolResolver.ResolveFunction[T](String name)
at TypeTreeDumper.EntryPoint.Dump()
Marshal.GetDelegateForFunctionPointer throws a null reference exception when called with a zero value IntPtr