Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit efc44f4

Browse files
committed
Fix
1 parent 6243cbb commit efc44f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NET6CustomLibrary/MultiLanguage/CultureAwareOperationFilter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public CultureAwareOperationFilter(IOptions<RequestLocalizationOptions> requestL
1414

1515
public void Apply(OpenApiOperation operation, OperationFilterContext context)
1616
{
17-
if (supportedLanguages.Count > 1)
17+
if (supportedLanguages?.Count > 1)
1818
{
1919
operation.Parameters ??= new List<OpenApiParameter>();
2020
operation.Parameters.Add(new OpenApiParameter

0 commit comments

Comments
 (0)