am 08874db8: Merge "Fix HierarchyViewer so it can load Contacts" into jb-mr1-dev
* commit '08874db8ed9f81f1d0f205bbffe87f913e50bc57': Fix HierarchyViewer so it can load Contacts
This commit is contained in:
@@ -1178,10 +1178,14 @@ public class ViewDebug {
|
|||||||
|
|
||||||
private static void writeValue(BufferedWriter out, Object value) throws IOException {
|
private static void writeValue(BufferedWriter out, Object value) throws IOException {
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
String output = value.toString().replace("\n", "\\n");
|
String output = "[EXCEPTION]";
|
||||||
out.write(String.valueOf(output.length()));
|
try {
|
||||||
out.write(",");
|
output = value.toString().replace("\n", "\\n");
|
||||||
out.write(output);
|
} finally {
|
||||||
|
out.write(String.valueOf(output.length()));
|
||||||
|
out.write(",");
|
||||||
|
out.write(output);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
out.write("4,null");
|
out.write("4,null");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user