Generated methode ApiClient.parameterToPairs failed to handle empty collections #17460 (#17463)

* #17460 add missing empty collection check

* generate samples
This commit is contained in:
Hansjörg Oppermann
2024-01-09 19:29:10 +01:00
committed by GitHub
parent 90f3b24edc
commit 8bab0ceb53
7 changed files with 7 additions and 7 deletions

View File

@@ -542,7 +542,7 @@ public class ApiClient extends JavaTimeFormatter {
List<Pair> params = new ArrayList<Pair>();
// preconditions
if (name == null || name.isEmpty() || value == null) {
if (name == null || name.isEmpty() || value == null || value.isEmpty()) {
return params;
}