1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-09-08 15:35:24 +02:00

Null extras bundle should not be processed.

Blind attempt to address #778
This commit is contained in:
Daniele Gobbetti 2017-08-25 22:01:21 +02:00
parent 15f4ce2869
commit 8aebf2d9d5

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