Skip to content

Commit

Permalink
PluggableMap: avoid crash when multiple interactions are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
megawac committed Jul 21, 2020
1 parent f763df8 commit 5c3ae24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ol/PluggableMap.js
Expand Up @@ -1049,7 +1049,7 @@ class PluggableMap extends BaseObject {
if (this.dispatchEvent(mapBrowserEvent) !== false) {
for (let i = interactionsArray.length - 1; i >= 0; i--) {
const interaction = interactionsArray[i];
if (!interaction.getActive()) {
if (!interaction || !interaction.getActive()) {
continue;
}
const cont = interaction.handleEvent(mapBrowserEvent);
Expand Down

0 comments on commit 5c3ae24

Please sign in to comment.