From 04e68a81a3c734356cb1d4b801db17db1784ebb3 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 12 Mar 2015 11:16:00 -0700 Subject: Fix crash if title is null --- src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java index 0cb044e3..3a703b89 100644 --- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java +++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java @@ -137,7 +137,9 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); - outState.putString(Constants.FRAGMENT_NAME, title.toString()); + if(title != null) { + outState.putString(Constants.FRAGMENT_NAME, title.toString()); + } } @Override -- cgit v1.2.3