Fix rendering_exception leading to "Could not draw chosen area"

Exception was caused by additionalTypes being null.
Occured when zooming out.
This commit is contained in:
Yan 2020-03-05 00:18:25 +01:00
parent 5ef2459416
commit 17708d6932

View file

@ -109,7 +109,7 @@ public class BinaryMapDataObject {
}
public boolean containsAdditionalType(int cachedType) {
if (cachedType != -1) {
if (cachedType != -1 && additionalTypes != null) {
for (int i = 0; i < additionalTypes.length; i++) {
if (additionalTypes[i] == cachedType) {
return true;