am 17fe99ac: Merge "Fix NPE in DropBoxManagerService.dump()" into lmp-mr1-dev
* commit '17fe99ac01b8b6648d3d703fec1b28a792832331': Fix NPE in DropBoxManagerService.dump()
This commit is contained in:
@@ -408,9 +408,14 @@ public final class DropBoxManagerService extends IDropBoxManagerService.Stub {
|
|||||||
if (!newline) out.append("\n");
|
if (!newline) out.append("\n");
|
||||||
} else {
|
} else {
|
||||||
String text = dbe.getText(70);
|
String text = dbe.getText(70);
|
||||||
boolean truncated = (text.length() == 70);
|
out.append(" ");
|
||||||
out.append(" ").append(text.trim().replace('\n', '/'));
|
if (text == null) {
|
||||||
if (truncated) out.append(" ...");
|
out.append("[null]");
|
||||||
|
} else {
|
||||||
|
boolean truncated = (text.length() == 70);
|
||||||
|
out.append(text.trim().replace('\n', '/'));
|
||||||
|
if (truncated) out.append(" ...");
|
||||||
|
}
|
||||||
out.append("\n");
|
out.append("\n");
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user