Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java @ 2212:588db6f2e05a
Avoid running into an NPE, but add warning to ease forensic.
flys-artifacts/trunk@3846 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 01 Feb 2012 08:37:38 +0000 |
parents | 0318fa6f0844 |
children | 1fcaeced48f2 |
comparison
equal
deleted
inserted
replaced
2211:5400631d2f96 | 2212:588db6f2e05a |
---|---|
453 | 453 |
454 try { | 454 try { |
455 // Collect all ArtifactAndFacets for blackboard pass. | 455 // Collect all ArtifactAndFacets for blackboard pass. |
456 for (int i = 0; i < size; i++) { | 456 for (int i = 0; i < size; i++) { |
457 ManagedFacet theme = themeList.get(i); | 457 ManagedFacet theme = themeList.get(i); |
458 if (theme == null) { | |
459 log.warn("A ManagedFacet in ThemeList is null."); | |
460 continue; | |
461 } | |
458 String uuid = theme.getArtifact(); | 462 String uuid = theme.getArtifact(); |
459 Artifact artifact = getArtifact(uuid, context); | 463 Artifact artifact = getArtifact(uuid, context); |
460 FLYSArtifact flys = (FLYSArtifact) artifact; | 464 FLYSArtifact flys = (FLYSArtifact) artifact; |
461 ArtifactAndFacet artifactAndFacet = new ArtifactAndFacet(artifact, | 465 ArtifactAndFacet artifactAndFacet = new ArtifactAndFacet(artifact, |
462 flys.getNativeFacet(theme)); | 466 flys.getNativeFacet(theme)); |