This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository echobase. See https://gitlab.nuiton.org/codelutin/echobase.git commit 15e0c62494541d059951a5cbda51c0dde51b8539 Author: Julien Ruchaud <julien.ruchaud@debux.org> Date: Tue Nov 22 09:40:10 2016 +0100 Fix NPE during test --- .../echobase/services/service/atlantos/xml/XmlAccousticExport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echobase-services/src/main/java/fr/ifremer/echobase/services/service/atlantos/xml/XmlAccousticExport.java b/echobase-services/src/main/java/fr/ifremer/echobase/services/service/atlantos/xml/XmlAccousticExport.java index 1b5b41b..c3f7ea8 100644 --- a/echobase-services/src/main/java/fr/ifremer/echobase/services/service/atlantos/xml/XmlAccousticExport.java +++ b/echobase-services/src/main/java/fr/ifremer/echobase/services/service/atlantos/xml/XmlAccousticExport.java @@ -407,7 +407,7 @@ public class XmlAccousticExport implements EchoBaseService { Float upperDepth = 10f; Data depthData = dataValues.get("ESDUstartDepth"); - Float lowerDepth = Float.parseFloat(depthData.getDataValue()); + Float lowerDepth = depthData != null ? Float.parseFloat(depthData.getDataValue()) : 0f; if (upperDepth >= lowerDepth) { upperDepth = 0f; -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.