1/2 as result in "black move" causes exception error
Status: Beta
Brought to you by:
berniman
When parsing the following game:
[Event "Rijeka (Women)"]
[Site "Rijeka"]
[Date "2007.03.03"]
[Round "5"]
[White "Kopinits,Anna Christina"]
[Black "Berke,Ana"]
[Result "1/2"]
[Eco "B26"]
1.e4 c5 2.Nc3 Nc6 3.g3 g6 4.Bg2 Bg7 5.d3 d6 6.Be3 Rb8 7.Qd2 1/2
a java.lang.ArrayIndexOutOfBoundsException: -1
is generated in Position.java:125.
The exception is caused by the fact that the result is given as 1/2 and not as 1/2-1/2.
The bug is located in PGNReader::getLAstTokenAsResult.