logo separator

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

From Rutger Nijlunsing rutger.nijlunsing at gmail.com on Sun Oct 23 16:34:49 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);
 		}
 	}



More information about the mkgmap-dev mailing list