mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-19 15:39:05 +00:00
Add check for list size before attempting to set last element field value. (#557)
This commit is contained in:
committed by
William Cheng
parent
26e70fe642
commit
cd854b2130
@@ -576,7 +576,9 @@ public class SpringCodegen extends AbstractJavaCodegen
|
||||
allParams.add(p);
|
||||
}
|
||||
}
|
||||
allParams.get(allParams.size()-1).hasMore =false;
|
||||
if (!allParams.isEmpty()) {
|
||||
allParams.get(allParams.size()-1).hasMore =false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user