FHRecorder crashes with StringIndexOutOfBoundsException when loading file with comments that begin on the line after the "Begin comments BELOW this line:" marker. FHRecorder seems to expect the comments to start on this same line.
Two files attached to illustrate, original file fails, but fixed file (b) passes.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1875)
at org.fhaes.FHRecorder.service.FileController.readCommentsFromFile(FileController.java:420)
FHRecorder crashes with StringIndexOutOfBoundsException when loading file with comments that begin on the line after the "Begin comments BELOW this line:" marker. FHRecorder seems to expect the comments to start on this same line.
Two files attached to illustrate, original file fails, but fixed file (b) passes.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1875) at org.fhaes.FHRecorder.service.FileController.readCommentsFromFile(FileController.java:420)
Original comment by: petebrew