jimmmeh / runsharp

Automatically exported from code.google.com/p/runsharp
MIT License
0 stars 0 forks source link

Operator - CmpEnumSpecific - exception when comparing object with null #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Problem - exception in "g.If (g.Local(...)==null)" when type of local variable 
is user type like "class TestClass{}".

You can add check to method "CmpEnumSpecific" in Operator.cs like this:
if (((object)args[0]==null)||((object)args[1]==null)) return stdNone;

Original issue reported on code.google.com by vlad.v...@gmail.com on 4 Dec 2012 at 3:50

GoogleCodeExporter commented 8 years ago
It's already fixed

Original comment by vlad....@gmail.com on 19 Jan 2013 at 6:33