aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-01-03 20:09:11 -0800
committerScott Jackson <daneren2005@gmail.com>2015-01-03 20:09:11 -0800
commit1023f1350dedf2d9f6b5a40c0acb156b3602cd58 (patch)
tree3a6ef22d04427da09eb7cbee39c78602fb12168d
parent05a279b66c2a0b1d2f1b40cc0df6163576aa1e49 (diff)
downloaddsub-1023f1350dedf2d9f6b5a40c0acb156b3602cd58.tar.gz
dsub-1023f1350dedf2d9f6b5a40c0acb156b3602cd58.tar.bz2
dsub-1023f1350dedf2d9f6b5a40c0acb156b3602cd58.zip
Fix crash if title is null for any reason
-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 09a1995e..f73bccb8 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -379,7 +379,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
@Override
public void setTitle(CharSequence title) {
- if(!title.equals(getSupportActionBar().getTitle())) {
+ if(title != null && !title.equals(getSupportActionBar().getTitle())) {
getSupportActionBar().setTitle(title);
recreateSpinner();
}