[banshee] [Last.fm] Properly detect missing account information



commit 25699c5e377fd99e4b8478e72ae946d1efc0fadc
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sat Nov 14 15:39:34 2009 +0100

    [Last.fm] Properly detect missing account information

 src/Libraries/Lastfm/Lastfm/RadioConnection.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Libraries/Lastfm/Lastfm/RadioConnection.cs b/src/Libraries/Lastfm/Lastfm/RadioConnection.cs
index a85dd16..bae2af4 100644
--- a/src/Libraries/Lastfm/Lastfm/RadioConnection.cs
+++ b/src/Libraries/Lastfm/Lastfm/RadioConnection.cs
@@ -151,12 +151,12 @@ namespace Lastfm
             if (State == ConnectionState.Connecting || State == ConnectionState.Connected)
                 return;
 
-            if (LastfmCore.Account.UserName == null) {
+            if (String.IsNullOrEmpty (LastfmCore.Account.UserName)) {
                 State = ConnectionState.NoAccount;
                 return;
             }
 
-            if (LastfmCore.Account.SessionKey == null) {
+            if (String.IsNullOrEmpty (LastfmCore.Account.SessionKey)) {
                 State = ConnectionState.NotAuthorized;
                 return;
             }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]