Merge "MediaSessionService: Fix NPE when startup" into rvc-dev
This commit is contained in:
@@ -85,6 +85,9 @@ final class MediaButtonReceiverHolder {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
ComponentName componentName = ComponentName.unflattenFromString(tokens[0]);
|
ComponentName componentName = ComponentName.unflattenFromString(tokens[0]);
|
||||||
|
if (componentName == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
int userId = Integer.parseInt(tokens[1]);
|
int userId = Integer.parseInt(tokens[1]);
|
||||||
// Guess component type if the OS version is updated from the older version.
|
// Guess component type if the OS version is updated from the older version.
|
||||||
int componentType = (tokens.length == 3)
|
int componentType = (tokens.length == 3)
|
||||||
|
|||||||
Reference in New Issue
Block a user