Description
Steps to produce:
- Create an empty adoc file in any component.
- Run camel-package:update-readme.
- It will fail with the following error:
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at org.apache.camel.maven.packaging.UpdateReadmeMojo.updateAvailableFrom (UpdateReadmeMojo.java:510) at org.apache.camel.maven.packaging.UpdateReadmeMojo.executeComponent (UpdateReadmeMojo.java:151) at org.apache.camel.maven.packaging.UpdateReadmeMojo.execute (UpdateReadmeMojo.java:105)
- As I can see here, it looks it will try to retrieve index although there are empty lines
Attachments
Issue Links
- links to