# HG changeset patch # User Felix Wolfsteller # Date 1354528261 -3600 # Node ID d440057b36f7a1c0bfef9df6b46906b7b64333ce # Parent 410a9292b71caf8636cb3b7d997b47aae2023aeb Fix differences/Waterlevelartifact. diff -r 410a9292b71c -r d440057b36f7 flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java Sat Dec 01 23:24:36 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java Mon Dec 03 10:51:01 2012 +0100 @@ -63,17 +63,22 @@ if(filterFacets != null) { List list = new ArrayList(); List 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); + } } }