Mapsforge maps v5: fix (empty) wildcards processing #429

This commit is contained in:
Emux 2018-03-18 18:06:55 +02:00
parent 5f57f97844
commit da628f99d6
No known key found for this signature in database
GPG Key ID: 89C6921D7AF2BDD0

View File

@ -1,6 +1,6 @@
/*
* Copyright 2010, 2011, 2012 mapsforge.org
* Copyright 2017 devemux86
* Copyright 2017-2018 devemux86
* Copyright 2017 Gustl22
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
@ -426,7 +426,7 @@ public class ReadBuffer {
for (int tagId : mTagIds) {
Tag tag = tagsArray[tagId];
// Decode variable values of tags
if (tag.value.charAt(0) == '%' && tag.value.length() == 2) {
if (tag.value.length() == 2 && tag.value.charAt(0) == '%') {
String value = tag.value;
if (value.charAt(1) == 'b') {
value = String.valueOf(readByte());