tobiatesan / abc4j

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

null pointer exception while parsing #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
X:20
T:Ainhoarrak
M:C|
O:Basque
Z:Richard Robinson
<URL:http://www.leeds.ac.uk/music/Info/RRTuneBk/contact.html>
%%TUNEURL: http://www.leeds.ac.uk/music/Info/RRTuneBk/gettune/00000b9a.html
%%ID:00000b9a
K:G
d>efg fedc| BcdB G2G>G| G2z2 GBAB| cBAG FGAB| \
A2A>A A2dc| B2BA GABc| d2ec d2z2 | dcde f2d2| \
cBAB c3A| F2z2 GABc| d2G2 FGAB|1 G3A G2z2 :|2 G3A G2de|:\
g2g2 g2g2| c3d c2d>e| =f2f2 fgfe| d3c B2z2| =f2f>d e2e>c| d2d>c B2z2 |\
d2c>B A2F2| G2AB c2c2| BcdB A3B| A2z2 c2de| fedc d2G2| FGAB G3A\
M:2/4
|1 G4 e3f :|2 G4D4 |:\
M:C|
G2A2 BAGF| GFGA G2z2| dcde f2d2| cBAB c2F2| G2A2 B2AG| FGAB G3A\
M:2/4
|1 G4D4 :|2 G4 B3c|: \
M:C|
d2d2 dfed| cBcd c2A>B| c2c2 cdcB| A2F2 GABc| d2G2 F2G2| d3e d2dc| B2BA GABc|\
d2e>c d2B>c| d2d2 d>fed| cBcd c2A>B| c2c2 cdcB| A2F2 GABc|\
d2G2 FGAB|1 G3A G2B>c :|2 G3A G2z2  |:\
d2e>f g2d2| BcAB G2A2| | B2G2 c2B2| ABGA B2G2| \
d2e>f g2d2| BcAB G2A2| B2G2 BdcB| AGAB G2z2 |: \
B2B>d c2c>A| B2B2 A2z2| GABc d2g2|1 BcAB G2G>A :|2 fgaf g2z2|:\
g2g>d e2e>c| d2d>B c2c>A| BdBG AcAF|1 G2G>G G2z2 :|2 G2G>G G2G>A||\
B2B>d c2c>A| B2B2 BAGF| G2G>A B2B>d| c2c>A B2B2| BAGF G2z2|\
BdBG AcAF| G2G>G G2G>A| B2B>d c2c>A| B2B2 BAGF| \
G2G>A B2B>d| c2c>A B2B2| BAGF G2g2| defd efga| fgaf g2z2|:\
G2d>d d2e2| =f2e>d c2z2| dcBA G2AB|1 cdcB A2z2 :|2 c2A2 A2z2|:\
B2B>B c2d2| A2z2 G2G>G| ABcA| B2G2| B2B>B c2d2| A2z2 G2A2| BdcB AGAB|\
M:2/4
G2z2 ::\
M:C|
GBAB G2d2| edcB B2A2| GBAB G2d2| edcB A2z2 ::\
GABc d2d2| d=fed c2z2| GABc d2d2| cdcB A2z2| GABA G2d2| edcB B2A2\
|1 GABc d2A2| FGAB A2z2 :|2 GABc f2g2| f2a2g2z2|]
% the lower notes in the last 1st-time bar are pretty much a guess -
% very indistinct photocopy. Sorry.

java.lang.NullPointerException
    at abc.parser.AbcParserAbstract.parseNote(AbcParserAbstract.java:1340)
    at abc.parser.AbcParserAbstract.parseNoteStem(AbcParserAbstract.java:1261)
    at abc.parser.AbcParserAbstract.parseNoteElement(AbcParserAbstract.java:1158)
    at abc.parser.AbcParserAbstract.parseElement(AbcParserAbstract.java:1037)
    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 3:32

GoogleCodeExporter commented 9 years ago
This tune does not make abc4j crash anymore but has many errors for v1.6 
grammmar.
Solved in 0.4

Original comment by lionel.g...@gmail.com on 16 Jan 2008 at 12:49

GoogleCodeExporter commented 9 years ago
fixed in 0.4

Original comment by lionel.g...@gmail.com on 22 Jan 2008 at 4:04