changeset 6083:a596ddb42fb3

Return an empty string for the NULL object. This makes it "disappear" if it is used as part of a description or info string
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 24 May 2013 09:23:35 +0200
parents 806fa23dffb3
children 46c18b687fdc
files artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/StackFrames.java
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/StackFrames.java	Fri May 24 09:22:39 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/StackFrames.java	Fri May 24 09:23:35 2013 +0200
@@ -31,7 +31,12 @@
 {
     private static Logger log = Logger.getLogger(StackFrames.class);
 
-    public static final Object NULL = new Object();
+    public static final Object NULL = new Object() {
+        @Override
+        public String toString() {
+            return "";
+        }
+    };
 
     /** The frames (used like a stack). */
     protected List<Map<String, Object>> frames;

http://dive4elements.wald.intevation.org