[PATCH 2 of 3] issue1020: Do not set a data with value null, this breaks stuff further

Wald Commits scm-commit at wald.intevation.org
Tue Dec 3 15:09:08 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1386069957 -3600
# Node ID 49a92f7e2017d907929c6acabad8a792a53c9983
# Parent  003502ea4854663bda2cbdc4108544ae624064a0
issue1020: Do not set a data with value null, this breaks stuff further
down the road.

diff -r 003502ea4854 -r 49a92f7e2017 artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java	Tue Dec 03 12:25:03 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java	Tue Dec 03 12:25:57 2013 +0100
@@ -112,7 +112,7 @@
 
             if (parts.length >= 1) {
                 boolean official = parts[0].toLowerCase().startsWith("official");
-                addStringData("official", official ? "1" : null);
+                addStringData("official", official ? "1" : "0");
             }
 
             if (parts.length >= 4) {


More information about the Dive4elements-commits mailing list