Schagalaah
Results
2
issues of
Schagalaah
return this.line.charAt(index) != SPACE_CHARACTER; it can happen that index is larger as char array length. try..catch or test against line.length I lazy fixed with try... catch and result is ok...
If height is 0 (can happen in some documents) the variable ""int numberOfLines" will be 2147483647 (Integer.MAX_VALUE). This will resolut in adding too much empty lines. quick dirty fix but...