Created by: cguckes
Added some null and length checks to titlecase function. It crashes in some cases otherwise
to fix https://github.com/OpenAPITools/openapi-generator/issues/12738
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
File the PR against the correct branch: master
(6.1.0) (minor release - breaking changes with fallbacks),7.0.x
(breaking changes without fallbacks)