Skip to content

Commit

Permalink
fixed NPE on getHasQueryParams method.
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMario committed Jun 8, 2018
1 parent 6862cdd commit 9dcfe40
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public boolean getHasQueryParams() {
return true;
}

if (authMethods == null || authMethods.isEmpty()) {
return false;
}

// Check if one of the authMethods is a query param
for (CodegenSecurity sec : authMethods) {
if (sec.isKeyInQuery) {
Expand Down

0 comments on commit 9dcfe40

Please sign in to comment.