smux-anki-converter icon indicating copy to clipboard operation
smux-anki-converter copied to clipboard

Cannot import Extreme_English_Proficiency

Open ahaw opened this issue 11 years ago • 3 comments

While unpacking there is an exception: 42126 Listen and complete null 99 About null Exception in thread "main" java.lang.NullPointerException at com.gitgis.sm.ItemConverter.parse(ItemConverter.java:92) at com.gitgis.sm.ItemConverter.getExercise(ItemConverter.java:52) at com.gitgis.sm.App.main(App.java:100) On both 1.4 and 1.7 version.

ahaw avatar Oct 22 '13 14:10 ahaw

smux-anki-converter 1.8 snapshot

The same problem with "EE Proficiency" deck dated September 2009. There is also a notable thing during parsing: a lot of generated files and directories have names "shifted" 1 position right stemplate00008 template00002 litem00040.xm litem00088.xm:

I've reproduced this error with a newer deck (2012) as well

evgenybf avatar May 26 '16 18:05 evgenybf

Found a similar discussion where this issue left unresolved: http://markmail.org/message/dv73bduccaj564xs#query:+page:1+mid:kwghjks6dsbjpoz7+state:results

evgenybf avatar May 26 '16 18:05 evgenybf

A short debug has helped: the proficiency deck has been successfully parsed after adding +1 to this line: SmPakParser.java, LIne 231 int currentNamePos = this.namePos + readInt() >>> + 1; <<<

Although It breaks entry names in the decks which were correctly parsed before.

evgenybf avatar May 26 '16 19:05 evgenybf