logo separator

[mkgmap-dev] [PATCH] Fix crash when parsing invalid UTF-8 files

From WanMil wmgcnfg at web.de on Mon Oct 24 18:47:22 BST 2011

> Extract of Benelux crashes when using "--road-name-pois" because of
> different exception occurs then expected. Catch this exception also.
>
> Index: src/uk/me/parabola/imgfmt/app/srt/Sort.java
> ===================================================================
> --- src/uk/me/parabola/imgfmt/app/srt/Sort.java	(revision 2052)
> +++ src/uk/me/parabola/imgfmt/app/srt/Sort.java	(working copy)
> @@ -128,6 +128,8 @@
>   			return new SrtSortKey<T>(object, key, second);
>   		} catch (CharacterCodingException e) {
>   			return new SrtSortKey<T>(object, ZERO_KEY);
> +		} catch (IllegalStateException e) {
> +			return new SrtSortKey<T>(object, ZERO_KEY);
>   		}
>   	}

Thanks for the patch.
Can you post the exception you want to catch in your patch? The patch 
covers a problem which I think should be fixed at its origin. So a 
stacktrace would be very helpful.

Thanks!
WanMil




More information about the mkgmap-dev mailing list