diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index 60d6f91efc..f6be0f8f76 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -438,7 +438,9 @@ OpenLayers.Map.prototype = { removePopup: function(popup) { this.popups.remove(popup); if (popup.div) { - this.layerContainerDiv.removeChild(popup.div); + try { this.layerContainerDiv.removeChild(popup.div); } + catch { } // Popups sometimes apparently get disconnected + // from the layerContainerDiv, and cause complaints. } popup.map = null; },