logo separator

[mkgmap-dev] Index branch - success!

From WanMil wmgcnfg at web.de on Fri Feb 11 22:16:42 GMT 2011

>> On 11/02/2011 20:59, WanMil wrote:
>>> I tried to compile a complete europe map. It failed with the following
>>> exception (sounds easy to fix...?-):
>>> Exception in thread "main" java.lang.NullPointerException
>>> at uk.me.parabola.imgfmt.app.mdr.Mdr23.sortRegions(Mdr23.java:54)
>> Easy to stop the exception perhaps ;) but how is it getting to be null?
>> All regions should have one of those set in the previous method.
>> Anyway I just compilled a complete UK extract and tried to upload
>> all the tiles and it failed with the usual error after a while. So a
>> complete Europe build might be a bit ambitious at this time.
>> ..Steve
> I think that happens in case the first region has an empty name "".
> Then the region is set to null in Mdr28.buildFromRegions(..). I try to
> change the lastName variable to another value. Maybe that works.
> WanMil

Initializing lastName with null should do (?).
The patch initializes lastName with null in all Mdr classes. This seems 
to be a c&p problem that might happen with all names in lot's of Mdr 

Don't know if an empty name should be contained in map?!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: handle_empty_names_v1.patch
Type: text/x-patch
Size: 7548 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20110211/476887e5/attachment.bin 

More information about the mkgmap-dev mailing list