Null extras bundle should not be processed.
Blind attempt to address #778
This commit is contained in:
parent
15f4ce2869
commit
8aebf2d9d5
|
@ -48,6 +48,12 @@ public class MusicPlaybackReceiver extends BroadcastReceiver {
|
|||
MusicStateSpec stateSpec = new MusicStateSpec(lastStateSpec);
|
||||
|
||||
Bundle incomingBundle = intent.getExtras();
|
||||
|
||||
if (incomingBundle == null) {
|
||||
LOG.warn("Not processing incoming null bundle.");
|
||||
return;
|
||||
}
|
||||
|
||||
for (String key : incomingBundle.keySet()) {
|
||||
Object incoming = incomingBundle.get(key);
|
||||
if (incoming instanceof String && "artist".equals(key)) {
|
||||
|
|
Loading…
Reference in New Issue