[PATCH 10 of 19] issue1435: SedimentDensityFacet: Access sediment density data

Wald Commits scm-commit at wald.intevation.org
Mon Sep 30 17:30:35 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1380555070 -7200
# Node ID cb3965dbf22ef110fbe666c5816cf6b43e7318f1
# Parent  e798658cc0ed62f5336f6fd12f0fac83f7e59cfa
issue1435: SedimentDensityFacet: Access sediment density data.

diff -r e798658cc0ed -r cb3965dbf22e artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensityFacet.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensityFacet.java	Mon Sep 30 17:30:48 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensityFacet.java	Mon Sep 30 17:31:10 2013 +0200
@@ -47,14 +47,14 @@
 
         D4EArtifact flys = (D4EArtifact) artifact;
 
-        CalculationResult res = (CalculationResult) flys.compute(context, hash,
+        SedimentDensity res = (SedimentDensity) flys.compute(context, hash,
             stateId, type, false);
 
         if (res == null) {
-            logger.error("No CalculationResult");
+            logger.error("No SedimentDensity");
         }
 
-        return null;
+        return res;
     }
 
 


More information about the Dive4elements-commits mailing list