Skip to content

Commit

Permalink
Avoid NullRef in CdpDelegationInfo (#2814)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucGenetier authored Jan 13, 2025
1 parent 78c4d5d commit 1a43082
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static TableDelegationInfo ToDelegationInfo(ServiceCapabilities serviceCa
}) as Core.Entities.ColumnCapabilitiesBase,
ComplexColumnCapabilities ccc => new Core.Entities.ComplexColumnCapabilities() as Core.Entities.ColumnCapabilitiesBase,
_ => throw new NotImplementedException()
});
}) ?? new Dictionary<string, Core.Entities.ColumnCapabilitiesBase>();

Dictionary<string, string> columnWithRelationships = connectorType.Fields.Where(f => f.ExternalTables?.Any() == true).Select(f => (f.Name, f.ExternalTables.First())).ToDictionary(tpl => tpl.Name, tpl => tpl.Item2);
string[] primaryKeyNames = connectorType.Fields.Where(f => f.KeyType == ConnectorKeyType.Primary).OrderBy(f => f.KeyOrder).Select(f => f.Name).ToArray();
Expand Down

0 comments on commit 1a43082

Please sign in to comment.