forked from loafle/openapi-generator-original
Added isEmtyString check to avoid IndexOutOfBoundException
This commit is contained in:
parent
8fb33980dc
commit
8eefe863bf
@ -2947,7 +2947,7 @@ public class DefaultCodegen {
|
|||||||
m = p.matcher(word);
|
m = p.matcher(word);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lowercaseFirstLetter) {
|
if (lowercaseFirstLetter && word.length() > 0) {
|
||||||
word = word.substring(0, 1).toLowerCase() + word.substring(1);
|
word = word.substring(0, 1).toLowerCase() + word.substring(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user