aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-02-16 23:13:19 -0800
committerScott Jackson <daneren2005@gmail.com>2014-02-16 23:13:19 -0800
commit15810147ac672f1c08c62672cb01fc4335a78052 (patch)
tree59f44e085957e1b93ce7ebfa5e9d54f673930e1a /src/github
parent5a95beb93472dea029944577d4d5c557f1aca55d (diff)
downloaddsub-15810147ac672f1c08c62672cb01fc4335a78052.tar.gz
dsub-15810147ac672f1c08c62672cb01fc4335a78052.tar.bz2
dsub-15810147ac672f1c08c62672cb01fc4335a78052.zip
Fix crash when going to download list
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/fragments/DownloadFragment.java6
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());
+ }
}
}