Navigation Menu

Skip to content

Commit

Permalink
Handle null strings returned from CLR using sorear++'s suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Jun 12, 2012
1 parent e52d6c3 commit a660099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/NieczaCLR.cs
Expand Up @@ -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))
Expand Down

0 comments on commit a660099

Please sign in to comment.