Skip to content

Commit 570b2a9

Browse files
committed
null handling
1 parent 021b353 commit 570b2a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Revit_Engine/Query/Description.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public static partial class Query
3737
[Output("description", "Human-readable description of the input property difference resulting from a Revit diffing workflow.")]
3838
public static string Description(this PropertyDifference difference)
3939
{
40+
if (difference == null)
41+
return null;
42+
4043
string propertyLabel;
4144
if (difference.DisplayName.EndsWith("(RevitParameter)"))
4245
propertyLabel = difference.DisplayName.Replace("(RevitParameter)", "(Revit Parameter)");

0 commit comments

Comments
 (0)