From 67128eaaa45f8c1f17c9e96fd05ce5452f210047 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 17 Jul 2014 22:12:57 -0700 Subject: Fix crash in trying to share --- src/github/daneren2005/dsub/activity/SubsonicActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3