geotools/geotools — pull request #606 by leif81 (2014-11-25 02:23:34+00:00)
Title: GEOT-4945: MapContent#addLayers throws NPE if MapLayerTable enabled

Since the Layer MapLayerListEvent#getElement return is null when multiple
layers are added at once (with MapContent#addLayers) we instead rely on the
layer indices in the event to determine the layers that are to be added to
the MapLayerTable.