Fixed crash on wifi disable.

This commit is contained in:
Felix Ableitner 2014-05-01 18:56:54 +02:00
parent 3fc1f9f925
commit 57f5d65e30

View file

@ -183,7 +183,7 @@ public class RemotePlayService extends Service implements RegistryListener {
.getDevice(new UDN(d.getKey()), false) == null) { .getDevice(new UDN(d.getKey()), false) == null) {
deviceRemoved(d.getValue()); deviceRemoved(d.getValue());
for (RemotePlayServiceBinder b : mBinders.keySet()) for (RemotePlayServiceBinder b : mBinders.keySet())
if (b.mCurrentRenderer.equals(d.getValue())) { if (b.mCurrentRenderer != null && b.mCurrentRenderer.equals(d.getValue())) {
b.mSubscriptionCallback.end(); b.mSubscriptionCallback.end();
b.mCurrentRenderer = null; b.mCurrentRenderer = null;
} }