Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core, Rust Server, ASP.NET Core] Fix Codegen Operation Scope Consistency #3495

Merged
merged 5 commits into from
Nov 8, 2019
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
[Core] Fix NPE in filtering auth methods
  • Loading branch information
richardwhiuk committed Sep 21, 2019
commit 7fa164b20878b907e29f7623b5ca929f70d02d29
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ private static OAuthFlow cloneOAuthFlow(OAuthFlow originFlow, List<String> opera
}

private List<CodegenSecurity> filterAuthMethods(List<CodegenSecurity> authMethods, List<SecurityRequirement> securities) {
if (securities == null || securities.isEmpty()) {
if (securities == null || securities.isEmpty() || authMethods == null) {
return authMethods;
}

Expand Down