Skip to content

Commit e666d3d

Browse files
committed
Add null conditional operator
1 parent ab9648c commit e666d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi.Readers/V2/OpenApiV2Deserializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private static void ProcessAnyListFields<T>(
7979

8080
mapNode.Context.StartObject(anyListFieldName);
8181

82-
var list = anyListFieldMap[anyListFieldName].PropertyGetter(domainObject);
82+
var list = anyListFieldMap[anyListFieldName]?.PropertyGetter(domainObject);
8383
if (list != null)
8484
{
8585
foreach (var propertyElement in list)

0 commit comments

Comments
 (0)