Fixed crash on app kill.
This commit is contained in:
parent
a861c1a81f
commit
3fc1f9f925
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Reference in a new issue