Skip to content

Commit

Permalink
Less unexpected error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Feb 19, 2024
1 parent d2bc5e6 commit da15c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FetchXmlBuilder/ControlsClasses/OptionsetItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public OptionsetItem(OptionMetadata Option)

public override string ToString()
{
return meta.Label.UserLocalizedLabel.Label + " (" + meta.Value.ToString() + ")";
return meta.Label?.UserLocalizedLabel?.Label + " (" + meta.Value?.ToString() + ")";
}

public string GetValue()
Expand Down

0 comments on commit da15c50

Please sign in to comment.