sorear/niecza — Issue #66: [CLR] Marshalling typed null values does not work
Author: sorear
Created: 2011-10-11 14:56:24+00:00
State: open

```
niecza> CLR::System::Object.marshal(Any)
CLR::System::Object
niecza> CLR::System::Object.marshal(CLR::System::Object)
System.NullReferenceException: Object reference not set to an instance of an object
at Niecza.CLRWrapperProvider.CoerceArgument (System.Object& clr, System.Type ty, Niecza.Variable var) [0x00000] in :0
at Niecza.CLRWrapperProvider.marshal_handler (Niecza.Frame th) [0x00000] in :0
at Niecza.Kernel.RunCore (Niecza.Frame& cur) [0x00000] in :0
at line 0 (KERNEL marshal @ 0)
at (eval) line 1 (MAIN_2 mainline @ 1)
at line 0 ( @ 1)
at line 0 (ExitRunloop @ 0)
```

Reported by colomon++.