From 57f5d65e30801f92d14d607b8a48b22c96ea3614 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 1 May 2014 18:56:54 +0200 Subject: [PATCH] Fixed crash on wifi disable. --- src/com/github/nutomic/controldlna/upnp/RemotePlayService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java b/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java index 27cfcff..967cbff 100644 --- a/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java +++ b/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java @@ -183,7 +183,7 @@ public class RemotePlayService extends Service implements RegistryListener { .getDevice(new UDN(d.getKey()), false) == null) { deviceRemoved(d.getValue()); for (RemotePlayServiceBinder b : mBinders.keySet()) - if (b.mCurrentRenderer.equals(d.getValue())) { + if (b.mCurrentRenderer != null && b.mCurrentRenderer.equals(d.getValue())) { b.mSubscriptionCallback.end(); b.mCurrentRenderer = null; }