mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fixed NullPointerException
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2417 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -69,16 +69,24 @@ public abstract class BaseDebugComponent extends SelfRenderingComponent
|
||||
out.write("<tr><td>");
|
||||
out.write(key.toString());
|
||||
out.write("</td><td>");
|
||||
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 ;<space> 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 ;<space> as that will help break up long lines
|
||||
value = value.replaceAll(";", "; ");
|
||||
out.write(value);
|
||||
}
|
||||
}
|
||||
out.write("</td></tr>");
|
||||
}
|
||||
|
Reference in New Issue
Block a user