logo separator

[mkgmap-dev] java.lang.IndexOutOfBoundsException/java.lang.NullPointerException

From Steve Ratcliffe steve at parabola.me.uk on Sat Jan 21 16:20:16 GMT 2012

On 21/01/12 14:32, Thorsten Kukuk wrote:
> Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: -1, Size: 0                                                                                      at java.util.ArrayList.get(ArrayList.java:352)
>          at uk.me.parabola.imgfmt.app.mdr.Mdr29.preWriteImpl(Mdr29.java:62)
>          at uk.me.parabola.imgfmt.app.mdr.MdrSection.preWrite(MdrSection.java:138)
>          at uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSection(MDRFile.java:379)
>          at uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSections(MDRFile.java:353)
>          at uk.me.parabola.imgfmt.app.mdr.MDRFile.write(MDRFile.java:247)
>          at uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinishForDevice(MdrBuilder.java:382)
>          at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish(GmapsuppBuilder.java:116)
>          at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:417)
>          at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:126)
>          at uk.me.parabola.mkgmap.main.Main.main(Main.java:112)

You get this error if none of the files do not contain any indexable 
elements, so it is a bit of a red herring in this case.

Running the file by itself (with --index) will cause the error, but when 
it is combined with the other files it will not.

The previous error is the real one.

..Steve



More information about the mkgmap-dev mailing list