diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-07-17 22:12:57 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-07-17 22:12:57 -0700 |
commit | 67128eaaa45f8c1f17c9e96fd05ce5452f210047 (patch) | |
tree | a3b53b18e97edc8561d4e9c25ec00244d0cff45b /src/github | |
parent | a3186e28ce8acfe18aed8827bcd42e4a09b10b42 (diff) | |
download | dsub-67128eaaa45f8c1f17c9e96fd05ce5452f210047.tar.gz dsub-67128eaaa45f8c1f17c9e96fd05ce5452f210047.tar.bz2 dsub-67128eaaa45f8c1f17c9e96fd05ce5452f210047.zip |
Fix crash in trying to share
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java index 514dea25..469cf925 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -162,7 +162,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte @Override
public void startActivity(Intent intent) {
- if("github.daneren2005.dsub.activity.DownloadActivity".equals(intent.getComponent().getClassName())) {
+ if(intent.getComponent() != null && "github.daneren2005.dsub.activity.DownloadActivity".equals(intent.getComponent().getClassName())) {
intent.putExtra(Constants.FRAGMENT_POSITION, lastSelectedPosition);
}
super.startActivity(intent);
|