From b78c5fd379b7202e36bf525449d530f84423e506 Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Tue, 19 Nov 2013 11:41:17 -0800 Subject: Fix crash --- src/github/daneren2005/dsub/activity/SubsonicActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java index a75fc22d..c475d321 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -368,7 +368,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte onSearchRequested(); } } - } else if(intent.getStringExtra(Constants.INTENT_EXTRA_NAME_QUERY) != null) { + } else if(currentFragment != null && intent.getStringExtra(Constants.INTENT_EXTRA_NAME_QUERY) != null) { setIntent(intent); SearchFragment fragment = new SearchFragment(); -- cgit v1.2.3