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:
parent
5ef2459416
commit
17708d6932
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue