Ticket #2443 (closed bug: fixed)
Map.updateSize does not correctly check for the existence of layers
|Reported by:||tmcw||Owned by:|
In cases where a map is initialized and resized before adding layers (I'm running into that corner case somehow), I've found that the loop that calls onMapResize() on each layer doesn't check to see whether the map actually has any layers, and so OpenLayers fails on a null reference. Patch attached which addresses this issue by adding a condition that this.layers != null, like is asked elsewhere in the code.