Skip to content

Commit

Permalink
Fixing null error for C# convertion, eg EntityType condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed May 14, 2023
1 parent 352e474 commit ee4bd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FetchXmlBuilder/Converters/CSharpCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ private string GetConditionValues(string entity, ConditionExpression cond, strin
var usetoken = settings.FilterVariables;
var valuestr = string.Empty;

if (enumattr != null)
if (enumattr != null && enumattr.OptionSet != null)
{
var valueint = value as int?;
if (valueint == null)
Expand Down

0 comments on commit ee4bd84

Please sign in to comment.