Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java @ 4628:03ab907b6f5d
Merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 03 Dec 2012 17:27:08 +0100 |
parents | d440057b36f7 |
children |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java Mon Dec 03 17:25:49 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java Mon Dec 03 17:27:08 2012 +0100 @@ -63,17 +63,22 @@ if(filterFacets != null) { List<Facet> list = new ArrayList<Facet>(); List<Facet> wlist = filterFacets.get(ChartType.LS); - for (Facet f: wlist) { - if (!f.getName().equals(LONGITUDINAL_Q)) { - DefaultFacet df = new DefaultFacet(f.getIndex(), - "longitudinal_section.q", ""); - list.add(df); + if (wlist == null) { + logger.warn("No matching filterfacets found"); + dumpFilterFacets(); + } else { + for (Facet f: wlist) { + if (!f.getName().equals(LONGITUDINAL_Q)) { + DefaultFacet df = new DefaultFacet(f.getIndex(), + "longitudinal_section.q", ""); + list.add(df); + } } - } - list.addAll(wlist); + list.addAll(wlist); - filterFacets.put("w_differences", list); + filterFacets.put("w_differences", list); + } } }