petebrew / fhaes

Fire History Analysis and Exploration System
GNU General Public License v3.0
4 stars 1 forks source link

Problem reading comments #69

Closed petebrew closed 9 years ago

petebrew commented 10 years ago

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

petebrew commented 10 years ago

Original comment by: valorcrow

petebrew commented 10 years ago

All objectives complete and implemented.

Original comment by: valorcrow