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

Test: adb shell cmd notification
Fixes: 63705462

Change-Id: Icdeed5b67913c4bde525171b36f8d6103aa5dfbd
This commit is contained in:
Felipe Leme
2017-07-14 11:18:08 -07:00
parent d066fa9b96
commit 68d8041e4d

View File

@@ -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) {