From 898ce9533a99d92f7d380976b2d5966e8cd7dcab Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Tue, 7 Oct 2014 15:49:45 -0400 Subject: [PATCH] Set _text to null in Anchor if the body content is empty. Previously it just left it to whatever it was set to before, which was super confusing and impossible to debug. --- .../main/java/org/apache/beehive/netui/tags/html/Anchor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Anchor.java b/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Anchor.java index 5c20bba..c2d7386 100644 --- a/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Anchor.java +++ b/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Anchor.java @@ -325,6 +325,8 @@ public class Anchor extends AnchorBase bodyContent.clearBody(); if (value.length() > 0) _text = value; + else + _text = null; } return SKIP_BODY; }