From 3fc1f9f92514e37709168740b99aa3bb33199fc1 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 1 May 2014 18:51:05 +0200 Subject: [PATCH] Fixed crash on app kill. --- src/com/github/nutomic/controldlna/upnp/Provider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/github/nutomic/controldlna/upnp/Provider.java b/src/com/github/nutomic/controldlna/upnp/Provider.java index 347ed39..8cecb9c 100644 --- a/src/com/github/nutomic/controldlna/upnp/Provider.java +++ b/src/com/github/nutomic/controldlna/upnp/Provider.java @@ -210,7 +210,7 @@ final class Provider extends MediaRouteProvider { @Override public void onDiscoveryRequestChanged(MediaRouteDiscoveryRequest request) { try { - if (request != null && request.isActiveScan()) + if (request != null && request.isActiveScan() && mIRemotePlayService != null) mIRemotePlayService.startSearch(mListener); } catch (RemoteException e) { e.printStackTrace();