Merge pull request #8625 from metayan/fix_rendering_exception

Fix rendering_exception leading to "Could not draw chosen area"
This commit is contained in:
vshcherb 2020-03-06 15:26:34 +01:00 committed by GitHub
commit 4c7d6b90b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;