aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-03-12 11:16:00 -0700
committerScott Jackson <daneren2005@gmail.com>2015-03-12 11:16:00 -0700
commit04e68a81a3c734356cb1d4b801db17db1784ebb3 (patch)
tree58aa2a2f8a24c911af1eb9c980ae2aa9ecf7d661 /src
parent238177ff7cf09f82db7282e461f390977c9b8ad9 (diff)
downloaddsub-04e68a81a3c734356cb1d4b801db17db1784ebb3.tar.gz
dsub-04e68a81a3c734356cb1d4b801db17db1784ebb3.tar.bz2
dsub-04e68a81a3c734356cb1d4b801db17db1784ebb3.zip
Fix crash if title is null
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java4
1 files changed, 3 insertions, 1 deletions
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