aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-04 09:38:10 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-04 09:38:10 -0700
commit4a0cc3eeadae1cdec7852ba96b0c40d15145dfce (patch)
treed9f4b0f4755fc0fb02c7890bbf97deb1f814d298 /src/github/daneren2005
parent43f1fdc4b10df4470e7d87360207676c2262c643 (diff)
downloaddsub-4a0cc3eeadae1cdec7852ba96b0c40d15145dfce.tar.gz
dsub-4a0cc3eeadae1cdec7852ba96b0c40d15145dfce.tar.bz2
dsub-4a0cc3eeadae1cdec7852ba96b0c40d15145dfce.zip
Reaarange to possibly fix crash
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java b/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
index 2b328156..7f6de2d8 100644
--- a/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
@@ -155,7 +155,7 @@ public class SelectPlaylistFragment extends SelectListFragment<Playlist> {
Bundle args = new Bundle();
args.putString(Constants.INTENT_EXTRA_NAME_PLAYLIST_ID, playlist.getId());
args.putString(Constants.INTENT_EXTRA_NAME_PLAYLIST_NAME, playlist.getName());
- if(Util.checkServerVersion(context, "1.8") && UserUtil.getCurrentUsername(context).equals(playlist.getOwner())) {
+ if(Util.checkServerVersion(context, "1.8") && playlist.getOwner() != null && playlist.getOwner().equals(UserUtil.getCurrentUsername(context))) {
args.putBoolean(Constants.INTENT_EXTRA_NAME_PLAYLIST_OWNER, true);
}
fragment.setArguments(args);