Null extras bundle should not be processed.

Blind attempt to address #778
master
Daniele Gobbetti 2017-08-25 22:01:21 +02:00
parent 15f4ce2869
commit 8aebf2d9d5
1 changed files with 6 additions and 0 deletions

View File

@ -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)) {