Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,10 @@ public static List<OdcmProperty> GetComposableFunctionReturnTypeNavigations(this
throw new InvalidOperationException("This extension method is intended " +
"to only be called on a composable function.");

return (odcmMethod.ReturnType as OdcmClass).Properties
return (odcmMethod.ReturnType as OdcmClass)?.Properties
.Where(p => p.IsLink)
.OrderBy(p => p.Name)
.ToList();
.ToList() ?? new List<OdcmProperty>(); // default to empty list
}

/// <summary>
Expand Down