[Lada-commits] [PATCH 06 of 11] Return null as data

Wald Commits scm-commit at wald.intevation.org
Fri Mar 13 16:50:45 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1426261641 -3600
# Node ID 20016be6c07236a0565bfc9d0f2777e06a7a2acb
# Parent  c3742f46c8e1b771f69eb729083524113ebbb2ea
Return null as data.

diff -r c3742f46c8e1 -r 20016be6c072 src/main/java/de/intevation/lada/rest/ProbeService.java
--- a/src/main/java/de/intevation/lada/rest/ProbeService.java	Fri Mar 13 16:46:15 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/ProbeService.java	Fri Mar 13 16:47:21 2015 +0100
@@ -208,7 +208,7 @@
         }
         Violation violation = validator.validate(probe);
         if (violation.hasErrors()) {
-            Response response = new Response(false, 604, probe);
+            Response response = new Response(false, 604, null);
             response.setErrors(violation.getErrors());
             response.setWarnings(violation.getWarnings());
             return response;


More information about the Lada-commits mailing list