
On Wed, Aug 25, 2010 at 02:47:33PM +0800, maning sambale wrote:
Hi,
I am compiling a custom map from OSM format, what do these error messages mean: ava.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:443) at java.lang.Integer.parseInt(Integer.java:514) at uk.me.parabola.mkgmap.scan.TokenScanner.nextInt(TokenScanner.java:255) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.checkVersion(StyleImpl.java:564) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.<init>(StyleImpl.java:133) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.createConverter(Osm5MapDataSource.java:123) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:81)
Without looking at the code, it seems that the parser is expecting an XML attribute containing a (version?) number string, but it instead gets no attribute at all. It would be nice if Osm5MapDataSource.load() would catch the exception and add the source file and line number to the error message. Marko