Nevron Forum

NFormulaEngine.Variables.Add() throws exception since version 13.2.4.12

https://www.nevron.com/Forum/Topic7546.aspx

By Oliver Münchow 1 - Tuesday, March 5, 2013

Currently i switched from version 11.12.14.12 to version 13.2.4.12 and i encounter a problem by using the NFormulaEngine.

The problem can simply be reproduced:

- Take the example code from your help site: http://helpdotnetvision.nevron.com/System_FormulaEngine_Formula_Engine.html
- Execute it.
- At engine.Variables.Add() an System.Exception with the message "Cannot compare a variant with null variant" will be thrown.

By simply switching back to the old version the problem is gone, but that's not the kind of workaround i like to do.
By Oliver Münchow 1 - Tuesday, May 7, 2013

After getting no feedback from Nevron not here nor by email i just tested out the latest version 13.4.29.12, but the problem still occurs.
By Nevron Support - Monday, May 13, 2013

The problem occurs because the == operator was defined for the NVariant class, but we did not check for nulls. The problem is fixed and the fix will appear in the next service pack.
By Nevron Support - Wednesday, May 15, 2013

You should now be able to download the new sp - build version: 13.5.15.12