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

Commit 68d8041e authored by Felipe Leme's avatar Felipe Leme
Browse files

Fix 'cmd notification' crashes when no command is set.

Test: adb shell cmd notification
Fixes: 63705462

Change-Id: Icdeed5b67913c4bde525171b36f8d6103aa5dfbd
parent d066fa9b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5746,6 +5746,9 @@ public class NotificationManagerService extends SystemService {

        @Override
        public int onCommand(String cmd) {
            if (cmd == null) {
                return handleDefaultCommands(cmd);
            }
            final PrintWriter pw = getOutPrintWriter();
            try {
                switch (cmd) {