aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-17 22:12:57 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-17 22:12:57 -0700
commit67128eaaa45f8c1f17c9e96fd05ce5452f210047 (patch)
treea3b53b18e97edc8561d4e9c25ec00244d0cff45b /src
parenta3186e28ce8acfe18aed8827bcd42e4a09b10b42 (diff)
downloaddsub-67128eaaa45f8c1f17c9e96fd05ce5452f210047.tar.gz
dsub-67128eaaa45f8c1f17c9e96fd05ce5452f210047.tar.bz2
dsub-67128eaaa45f8c1f17c9e96fd05ce5452f210047.zip
Fix crash in trying to share
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicActivity.java2
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);