X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/259ae5fac769954c7db5974b86e791a929fe6700..bf725eadb3fd7b6a74b4043ef17366fce403dff7:/PreferencesController.m?ds=inline diff --git a/PreferencesController.m b/PreferencesController.m index 6f8abfd..638be40 100755 --- a/PreferencesController.m +++ b/PreferencesController.m @@ -86,6 +86,10 @@ static PreferencesController *prefs = nil; SecKeychainAttribute attributes[3]; SecKeychainAttributeList list; + if ((user == nil) || ([user length] == 0)) { + return nil; + } + ITDebugLog(@"Audioscrobbler: Searching for keychain item for %@.", user); attributes[0].tag = kSecAccountItemAttr; attributes[0].data = (char *)[user UTF8String];