Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Handle null strings returned from CLR using sorear++'s suggestion.

  • Loading branch information...
commit a6600997b13d6f6002e491c8463b38cdeb788450 1 parent e52d6c3
@colomon colomon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/NieczaCLR.cs
View
2  lib/NieczaCLR.cs
@@ -788,7 +788,7 @@ public class CLRWrapperProvider {
if (cty == typeof(bool))
return Kernel.BoxAnyMO((bool)ret, Kernel.BoolMO);
if (cty == typeof(string))
- return Kernel.BoxAnyMO((string)ret, Kernel.StrMO);
+ return ret == null ? Kernel.StrMO.typeObj : Kernel.BoxAnyMO((string)ret, Kernel.StrMO);
if (cty == typeof(Variable))
return (Variable)ret;
if (cty == typeof(P6any))
Please sign in to comment.
Something went wrong with that request. Please try again.