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

Commit 17fe99ac authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in DropBoxManagerService.dump()" into lmp-mr1-dev

parents 505ffe36 22510ef2
Loading
Loading
Loading
Loading
+8 −3
Original line number Original line Diff line number Diff line
@@ -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);
                        out.append("    ");
                        if (text == null) {
                            out.append("[null]");
                        } else {
                            boolean truncated = (text.length() == 70);
                            boolean truncated = (text.length() == 70);
                        out.append("    ").append(text.trim().replace('\n', '/'));
                            out.append(text.trim().replace('\n', '/'));
                            if (truncated) out.append(" ...");
                            if (truncated) out.append(" ...");
                        }
                        out.append("\n");
                        out.append("\n");
                    }
                    }
                } catch (IOException e) {
                } catch (IOException e) {