# HG changeset patch # User Felix Wolfsteller # Date 1319803798 0 # Node ID d5d2bffb26cad78b6cea7c0e222a6b16a57a2cc0 # Parent f3be8fa1ec62b4bfe9bee42cb6d0f02f6904eb5e Avoid NPE when compatibility matrix is empty for given output. flys-artifacts/trunk@3111 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r f3be8fa1ec62 -r d5d2bffb26ca flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Fri Oct 28 10:24:26 2011 +0000 +++ b/flys-artifacts/ChangeLog Fri Oct 28 12:09:58 2011 +0000 @@ -1,3 +1,9 @@ +2011-10-28 Felix Wolfsteller + + * src/main/java/de/intevation/flys/collections/AttributeWriter.java: + Survive case where a given output doesnt exist in compatibility + matrix. + 2011-10-28 Felix Wolfsteller * src/main/java/de/intevation/flys/artifacts/states/StaticState.java: diff -r f3be8fa1ec62 -r d5d2bffb26ca flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java --- a/flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java Fri Oct 28 10:24:26 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java Fri Oct 28 12:09:58 2011 +0000 @@ -162,6 +162,12 @@ List compatibleFacets) throws ArtifactDatabaseException { + + if (compatibleFacets == null) { + logger.warn("No compatible facets, not generating out."); + return; + } + int num = newFacets.size(); // Add all new Facets either in their old state or (if really