diff options
-rw-r--r-- | src/github/daneren2005/dsub/fragments/DownloadFragment.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/src/github/daneren2005/dsub/fragments/DownloadFragment.java index d87d8432..0a146b33 100644 --- a/src/github/daneren2005/dsub/fragments/DownloadFragment.java +++ b/src/github/daneren2005/dsub/fragments/DownloadFragment.java @@ -504,8 +504,10 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe }
if(downloadService != null) {
MenuItem mediaRouteItem = menu.findItem(R.id.menu_mediaroute);
- MediaRouteButton mediaRouteButton = (MediaRouteButton) mediaRouteItem.getActionView();
- mediaRouteButton.setRouteSelector(downloadService.getRemoteSelector());
+ if(mediaRouteItem != null) {
+ MediaRouteButton mediaRouteButton = (MediaRouteButton) mediaRouteItem.getActionView();
+ mediaRouteButton.setRouteSelector(downloadService.getRemoteSelector());
+ }
}
}
|