diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-02-16 23:13:19 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-02-16 23:13:19 -0800 |
commit | 15810147ac672f1c08c62672cb01fc4335a78052 (patch) | |
tree | 59f44e085957e1b93ce7ebfa5e9d54f673930e1a /src/github | |
parent | 5a95beb93472dea029944577d4d5c557f1aca55d (diff) | |
download | dsub-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.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());
+ }
}
}
|