summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sudheer Shanka <sudheersai@google.com> 2024-09-30 04:37:51 +0000
committer Sudheer Shanka <sudheersai@google.com> 2024-09-30 04:37:51 +0000
commitda321ee3998cd62318b37edf502e3f2aac58a278 (patch)
treedb3801bd55373313abaedab11e6fe2a36b9d67b1
parent5315c21bb226595c72a89c9df7a831fc1fbd6b85 (diff)
Ignore null actions in BlobStoreManagerService receivers.
Bug: 369064801 Test: manual Flag: EXEMPT bugfix Change-Id: Id07a3cea3ed9463f75dc98a86a98baaac4fb240a
-rw-r--r--apex/blobstore/service/java/com/android/server/blob/BlobStoreManagerService.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/apex/blobstore/service/java/com/android/server/blob/BlobStoreManagerService.java b/apex/blobstore/service/java/com/android/server/blob/BlobStoreManagerService.java
index 3af36ebb08ca..e200434d9ff2 100644
--- a/apex/blobstore/service/java/com/android/server/blob/BlobStoreManagerService.java
+++ b/apex/blobstore/service/java/com/android/server/blob/BlobStoreManagerService.java
@@ -1404,7 +1404,11 @@ public class BlobStoreManagerService extends SystemService {
if (LOGV) {
Slog.v(TAG, "Received " + intent);
}
- switch (intent.getAction()) {
+ final String action = intent.getAction();
+ if (action == null) {
+ return;
+ }
+ switch (action) {
case Intent.ACTION_PACKAGE_FULLY_REMOVED:
case Intent.ACTION_PACKAGE_DATA_CLEARED:
final String packageName = intent.getData().getSchemeSpecificPart();
@@ -1431,7 +1435,11 @@ public class BlobStoreManagerService extends SystemService {
if (LOGV) {
Slog.v(TAG, "Received: " + intent);
}
- switch (intent.getAction()) {
+ final String action = intent.getAction();
+ if (action == null) {
+ return;
+ }
+ switch (action) {
case Intent.ACTION_USER_REMOVED:
final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
USER_NULL);