# HG changeset patch # User Björn Ricks # Date 1349351943 -7200 # Node ID 62d99de39a8dcf0b570b81d96221bddafff9298d # Parent e064e781d2552971dcdfcad947b10d6bf6756a49 Avoid NPE if no attribute outs are present diff -r e064e781d255 -r 62d99de39a8d flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Thu Oct 04 11:27:06 2012 +0200 +++ b/flys-artifacts/ChangeLog Thu Oct 04 13:59:03 2012 +0200 @@ -1,7 +1,10 @@ +2012-10-01 Björn Ricks + + * src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java: + Avoid NullPonterException if not attribute outs are present. + 2012-10-03 Felix Wolfsteller - Fix issue417. - * flys-artifacts/doc/conf/default-themes, flys-artifacts/doc/conf/second-themes, flys-artifacts/doc/conf/virtual-themes: diff -r e064e781d255 -r 62d99de39a8d flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java --- a/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Thu Oct 04 11:27:06 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Thu Oct 04 13:59:03 2012 +0200 @@ -374,7 +374,10 @@ CollectionAttribute cAttr = parser.getCollectionAttribute(); Output output = cAttr.getOutput(name); - Settings settings = output.getSettings(); + Settings settings = null; + if (output != null) { + settings = output.getSettings(); + } generator.init(format, out, context); generator.setSettings(settings);