diff options
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r-- | src/org/traccar/model/ExtendedInfoFormatter.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/org/traccar/model/ExtendedInfoFormatter.java b/src/org/traccar/model/ExtendedInfoFormatter.java index 756845b9d..99966569e 100644 --- a/src/org/traccar/model/ExtendedInfoFormatter.java +++ b/src/org/traccar/model/ExtendedInfoFormatter.java @@ -32,6 +32,11 @@ public class ExtendedInfoFormatter { public void set(String key, Object value) { if (value != null) { + // Exclude empty strings + if ((value instanceof String) && ((String) value).isEmpty()) { + return; + } + data.append("<").append(key).append(">"); data.append(value); data.append("</").append(key).append(">"); |