AOSP/Calendar - Fix crash bug when null action is sent to com.android.calendar/.widget.CalendarAppWidgetProvider.

BUG: 143601593

Test: manual - Ran the following tests on Pixel phone. Tested the calendar UI.

$ make -j 40
$ make Calendar -j

$ ls -l out/target/product/generic/system/product/app/Calendar/Calendar.apk out/target/product/generic/testcases/CalendarTests/arm/CalendarTests.apk

$ adb install -r -d -g out/target/product/generic/system/product/app/Calendar/Calendar.apk
$ adb install -r -d -g ~/Downloads/AndroidCalendarCrashPoc.apk
Performing Streamed Install
Success

$ adb shell am broadcast -n com.android.calendar/.widget.CalendarAppWidgetProvider
Broadcasting: Intent { flg=0x400000 cmp=com.android.calendar/.widget.CalendarAppWidgetProvider }
Broadcast completed: result=0

Verified calendar app doesn't crash with the above (as mentioned in the above bug).

Change-Id: If211a453d1633fc7d432670243cf87f35dafabb4
1 file changed