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();