<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Uli,<br><br>I am able to reproduce a similar error when I use a TreeMap <br>instead of a LinkedHashMap<br>for RoadDef objects in TableA. I think the problem was introduced with<br>the merge of the unicode branch (r3076) which<br>introduced the new encText field in Label and a possible text==null .<br><br> @Steve: <br>I am not sure what to do here. A method like City.getName() should<br>probably used the getEncText() method if getText() returns null?<br>But getEncText() returns a char[] while getText() returns a String,<br>so that seems to be inefficient :-(<br><br>Gerd<br><br><br><div>> Date: Wed, 5 Nov 2014 09:56:06 -0800<br>> From: ulibaer@gmail.com<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] NPE with mkgmap 3320<br>> <br>> Last night this error happened again at the same spot.<br>> The remedy is still the same: Run only one thread or declare the method<br>> synchronized.<br>> <br>> I still think, something is not right there...<br>> <br>> java.lang.NullPointerException<br>> at uk.me.parabola.imgfmt.app.net.RoadDef.compareTo(RoadDef.java:700)<br>> at uk.me.parabola.imgfmt.app.net.RoadDef.compareTo(RoadDef.java:56)<br>> at java.util.HashMap.compareComparables(Unknown Source)<br>> at java.util.HashMap$TreeNode.treeify(Unknown Source)<br>> at java.util.HashMap.treeifyBin(Unknown Source)<br>> at java.util.HashMap.putVal(Unknown Source)<br>> at java.util.HashMap.put(Unknown Source)<br>> at uk.me.parabola.imgfmt.app.net.TableA.addArc(TableA.java:86)<br>> at uk.me.parabola.imgfmt.app.net.NOD1Part.addNode(NOD1Part.java:229)<br>> at<br>> uk.me.parabola.imgfmt.app.net.NOD1Part.subdivideHelper(NOD1Part.java:<br>> 305)<br>> at<br>> uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)<br>> at<br>> uk.me.parabola.imgfmt.app.net.RoadNetwork.splitCenters(RoadNetwork.ja<br>> va:249)<br>> at<br>> uk.me.parabola.imgfmt.app.net.RoadNetwork.getCenters(RoadNetwork.java<br>> :256)<br>> at<br>> uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:231)<br>> at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:120)<br>> at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:82)<br>> at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:253)<br>> at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:249)<br>> at java.util.concurrent.FutureTask.run(Unknown Source)<br>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)<br>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown<br>> Source)<br>> at java.lang.Thread.run(Unknown Source)<br>> <br>> <br>> <br>> --<br>> View this message in context: http://gis.19327.n5.nabble.com/NPE-with-mkgmap-3320-tp5813472p5823284.html<br>> Sent from the Mkgmap Development mailing list archive at Nabble.com.<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>