Fixed crash on app kill.

This commit is contained in:
Felix Ableitner 2014-05-01 18:51:05 +02:00
parent a861c1a81f
commit 3fc1f9f925

View file

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