diff --git a/source/java/org/alfresco/web/ui/common/component/debug/BaseDebugComponent.java b/source/java/org/alfresco/web/ui/common/component/debug/BaseDebugComponent.java index b86fd5839b..b28c67de78 100644 --- a/source/java/org/alfresco/web/ui/common/component/debug/BaseDebugComponent.java +++ b/source/java/org/alfresco/web/ui/common/component/debug/BaseDebugComponent.java @@ -69,16 +69,24 @@ public abstract class BaseDebugComponent extends SelfRenderingComponent out.write(""); out.write(key.toString()); out.write(""); - String value = session.get(key).toString(); - if (value == null || value.length() == 0) + Object obj = session.get(key); + if (obj == null) { - out.write(" "); + out.write("null"); } else { - // replace any ; characters with ; as that will help break up long lines - value = value.replaceAll(";", "; "); - out.write(value); + String value = obj.toString(); + if (value.length() == 0) + { + out.write(" "); + } + else + { + // replace any ; characters with ; as that will help break up long lines + value = value.replaceAll(";", "; "); + out.write(value); + } } out.write(""); }