Ticket #2443 (closed bug: fixed)
Map.updateSize does not correctly check for the existence of layers
| Reported by: | tmcw | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.9 Release |
| Component: | Map | Version: | 2.8 |
| Keywords: | Cc: | ||
| State: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

