mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 14:10:56 +00:00
Add check for list size before attempting to set last element field value. (#557)
This commit is contained in:
parent
26e70fe642
commit
cd854b2130
@ -576,8 +576,10 @@ public class SpringCodegen extends AbstractJavaCodegen
|
|||||||
allParams.add(p);
|
allParams.add(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!allParams.isEmpty()) {
|
||||||
allParams.get(allParams.size()-1).hasMore =false;
|
allParams.get(allParams.size()-1).hasMore =false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> postProcessSupportingFileData(Map<String, Object> objs) {
|
public Map<String, Object> postProcessSupportingFileData(Map<String, Object> objs) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user