On 28/09/12 13:41, aighes wrote:
I've got a NPE while testing my style-file (
http://www.aighes.de/data/rrk_style.zip ).
That file doesn't exist for me.
Any guesses were the fault could be? Maybe a better errormessage could
be generated by mkgmap in this case?
I'm guessing you have something like:
a=b | c [0x1 ]
In other words you have a bare tag name without any operation.
If you apply the attached patch, it will show you the line number of the
problem, if it is due to this.
The message is somewhat cryptic, so will need to do something about that.
Also the similar case:
a=b & c [0x2 ]
does not give an error (the 'c' bit is always regarded as true I think)
but it probably should.
..Steve
Index: src/uk/me/parabola/mkgmap/osmstyle/RuleFileReader.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/uk/me/parabola/mkgmap/osmstyle/RuleFileReader.java (revision 2335)
+++ src/uk/me/parabola/mkgmap/osmstyle/RuleFileReader.java (revision )
@@ -236,7 +236,7 @@
* Exists operation.
*/
private static boolean isIndexable(Op op) {
- return op.isType(EQUALS) || op.isType(EXISTS);
+ return op != null && (op.isType(EQUALS) || op.isType(EXISTS));
}
/**
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev