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

Commit 3133c401 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #17329290: NPE during ContentProviderRecord.dump()

Don't NPE.

Change-Id: I5e59583e97b969b1739fc39a1520bd1930302313
parent 78358b17
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -166,8 +166,16 @@ final class ContentProviderRecord {
        }
        if (full) {
            if (hasExternalProcessHandles()) {
                pw.print(prefix); pw.print("externals=");
                        pw.println(externalProcessTokenToHandle.size());
                pw.print(prefix); pw.print("externals:");
                if (externalProcessTokenToHandle != null) {
                    pw.print(" w/token=");
                    pw.print(externalProcessTokenToHandle.size());
                }
                if (externalProcessNoHandleCount > 0) {
                    pw.print(" notoken=");
                    pw.print(externalProcessNoHandleCount);
                }
                pw.println();
            }
        } else {
            if (connections.size() > 0 || externalProcessNoHandleCount > 0) {