Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java @ 1624:238145ef67da
Cosmetics.
flys-artifacts/trunk@2799 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 21 Sep 2011 13:01:25 +0000 |
parents | eccf966fb677 |
children | 5642a83420f2 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java Wed Sep 21 12:55:36 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java Wed Sep 21 13:01:25 2011 +0000 @@ -488,8 +488,13 @@ ) { log.debug("createdArtifact"); + if (artifact == null) { + log.warn("artifact to create is null"); + return; + } + if (!(artifact instanceof FLYSArtifact)) { - log.warn("need FLYSArtifact here"); + log.warn("need FLYSArtifact here (have " + artifact.getClass() + ")"); return; } @@ -536,7 +541,7 @@ ) { log.debug("storedArtifact"); if (!(artifact instanceof FLYSArtifact)) { - log.warn("need FLYSArtifact here"); + log.warn("need FLYSArtifact here but have a " + artifact.getClass()); return; }