tobiatesan / abc4j

Automatically exported from code.google.com/p/abc4j
0 stars 1 forks source link

nullpointer exception in tuplets part when parsing. #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
this tune makes the parser crash

X:2
T:Bovaglie's Plaid
C:J Scott Skinner
M:C
L:1/8
Q:100
K:A
A|"D"(FE/C/) "A"E>F A>B c>A|"D"dc/B/ "A"{B}(ec) "Bm"{c}BA (F/A)
z/|"A"(FE/C/) (E>F) A>B"D"c>d|
"A"ec/A/ "E7"G/d/z/G/  "A"{G}A2 A::e|"A"ag/a/  (3 ecA "D"(3 fdA "A"(3
ecA|(3(CEA) (3(cea) "E"{cd}c>B(B>e)|
"A"ag/a/ (3ecA "D"(3(FAd) "A"(3 (EAc)|"Bm"(3(DFB) "E7"(E/d/)z/G/ "A"{G}(A2
A) e|"A"{g}ab/a/g/f/ (3ecA "D"(3fdA "A"(3ecA|
"A"ae/d/ cB/A/ "E"B>BB A/G/|"D"(FG/A/) "A"(EG/A/) "Bm"(DG/A/) "A"{CD}(3
CB,A,|(3(ECA,) "E7"G,/D/z/G,/ "A"(A,2 A,)|]

java.lang.NullPointerException
    at abc.notation.Tuplet.<init>(Tuplet.java:26)
    at
abc.parser.AbcParserAbstract.parseTupletElement(AbcParserAbstract.java:1109)
    at abc.parser.AbcParserAbstract.parseElement(AbcParserAbstract.java:1045)
    at abc.parser.AbcParserAbstract.parseAbcLine(AbcParserAbstract.java:947)
    at abc.parser.AbcParserAbstract.parseAbcMusic(AbcParserAbstract.java:932)
    at abc.parser.AbcParserAbstract.parseAbcTune(AbcParserAbstract.java:254)
    at abc.parser.TuneParser.parse(TuneParser.java:48)
    at abc.parser.TuneParser.parse(TuneParser.java:25)

Original issue reported on code.google.com by lionel.g...@gmail.com on 24 Apr 2007 at 9:48

GoogleCodeExporter commented 9 years ago
fixed in v0.3 and this tune is now part of crash.abc regression campain.

Original comment by lionel.g...@gmail.com on 6 Sep 2007 at 3:11