Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22510ef2 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Fix NPE in DropBoxManagerService.dump()

Bug: 18374803
Change-Id: Id1f66a0887d1584f97b127e837a4fad31f7d9d57
parent 13cf7917
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -408,9 +408,14 @@ public final class DropBoxManagerService extends IDropBoxManagerService.Stub {
                        if (!newline) out.append("\n");
                    } else {
                        String text = dbe.getText(70);
                        out.append("    ");
                        if (text == null) {
                            out.append("[null]");
                        } else {
                            boolean truncated = (text.length() == 70);
                        out.append("    ").append(text.trim().replace('\n', '/'));
                            out.append(text.trim().replace('\n', '/'));
                            if (truncated) out.append(" ...");
                        }
                        out.append("\n");
                    }
                } catch (IOException e) {