Skip to content

Commit d9781fe

Browse files
author
Dianne Hackborn
committed
Fix crash.
Change-Id: Id219351625494c54524e400055755d41f3bef868
1 parent a0b29f5 commit d9781fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/am/ActivityManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4934,7 +4934,7 @@ void grantUriPermissionUncheckedFromIntentLocked(NeededUriGrants needed,
49344934
void grantUriPermissionFromIntentLocked(int callingUid,
49354935
String targetPkg, Intent intent, UriPermissionOwner owner) {
49364936
NeededUriGrants needed = checkGrantUriPermissionFromIntentLocked(callingUid, targetPkg,
4937-
intent, intent.getFlags(), null);
4937+
intent, intent != null ? intent.getFlags() : 0, null);
49384938
if (needed == null) {
49394939
return;
49404940
}

0 commit comments

Comments
 (0)