[Salesforce Connector] BUG found

Forge Component
Published on 19 Feb by Vera Tiago
17 votes
Published on 19 Feb by Vera Tiago

I have found a bug in the method:
"public static string OutSystemsToSforce (soapType type, object val)" from class "DataTypeConversion" in which the null value from the variable 'val' was not correctly handled.
All I did to solve the problem was adding the following code in the first line of the method:
if (val == null) {return null;}

This error happened when the GetValue from a Field returned null for some reason.