diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-07-04 09:38:10 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-07-04 09:38:10 -0700 |
commit | 4a0cc3eeadae1cdec7852ba96b0c40d15145dfce (patch) | |
tree | d9f4b0f4755fc0fb02c7890bbf97deb1f814d298 /src/github | |
parent | 43f1fdc4b10df4470e7d87360207676c2262c643 (diff) | |
download | dsub-4a0cc3eeadae1cdec7852ba96b0c40d15145dfce.tar.gz dsub-4a0cc3eeadae1cdec7852ba96b0c40d15145dfce.tar.bz2 dsub-4a0cc3eeadae1cdec7852ba96b0c40d15145dfce.zip |
Reaarange to possibly fix crash
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java | 2 |
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);
|