Skip to content

Commit da15c50

Browse files
committed
Less unexpected error messages
1 parent d2bc5e6 commit da15c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FetchXmlBuilder/ControlsClasses/OptionsetItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public OptionsetItem(OptionMetadata Option)
1414

1515
public override string ToString()
1616
{
17-
return meta.Label.UserLocalizedLabel.Label + " (" + meta.Value.ToString() + ")";
17+
return meta.Label?.UserLocalizedLabel?.Label + " (" + meta.Value?.ToString() + ")";
1818
}
1919

2020
public string GetValue()

0 commit comments

Comments
 (0)