Hi Steve,
with r440 you have changed NumberReader. I think you removed
a check by accident, as the comment still relates to the old code.
Please check the following patch, without it NetCheck often
crashes.
Gerd
Index: NumberReader.java
===================================================================
--- NumberReader.java (revision 444)
+++ NumberReader.java (working copy)
@@ -100,7 +100,7 @@
// To do this properly we need to know the number of nodes I
think, this
is the
// best we can do: if there are more than 8 bits left, there
must be
another command
// left. We could leave a short command at the end.
- while (br.getBitPosition() < br.getNumberOfBits() &&
numbers.size() <
numberOfNodes)
+ while (br.getBitPosition() < br.getNumberOfBits() - 8 &&
numbers.size() <
numberOfNodes){
runCommand(numbers);
return numbers;
--
View this message in context:
http://gis.19327.n5.nabble.com/display-tool-NetCheck-tp5830539.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev