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

This commit is contained in:
TreeHugger Robot
2017-07-14 20:36:13 +00:00
committed by Android (Google) Code Review

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