We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8d7e91 commit f862afcCopy full SHA for f862afc
src/core/Synapse.Application/Extensions/V1EventExtensions.cs
@@ -41,9 +41,12 @@ public static CloudEvent AsCloudEvent(this V1Event e)
41
ce.DataContentType = e.DataContentType;
42
ce.DataSchema = e.DataSchema;
43
ce.Data = e.Data;
44
- foreach(var extension in e.ExtensionAttributes)
+ if(e.ExtensionAttributes != null)
45
{
46
- ce.SetAttributeFromString(extension.Key, extension.Value?.ToString()!);
+ foreach (var extension in e.ExtensionAttributes)
47
+ {
48
+ ce.SetAttributeFromString(extension.Key, extension.Value?.ToString()!);
49
+ }
50
}
51
return ce;
52
0 commit comments