We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97298cd + 97723b2 commit 08874dbCopy full SHA for 08874db
core/java/android/view/ViewDebug.java
@@ -1178,10 +1178,14 @@ static Object resolveId(Context context, int id) {
1178
1179
private static void writeValue(BufferedWriter out, Object value) throws IOException {
1180
if (value != null) {
1181
- String output = value.toString().replace("\n", "\\n");
1182
- out.write(String.valueOf(output.length()));
1183
- out.write(",");
1184
- out.write(output);
+ String output = "[EXCEPTION]";
+ try {
+ output = value.toString().replace("\n", "\\n");
+ } finally {
1185
+ out.write(String.valueOf(output.length()));
1186
+ out.write(",");
1187
+ out.write(output);
1188
+ }
1189
} else {
1190
out.write("4,null");
1191
}
0 commit comments