diff --git a/evernote-sdk-ios/EvernoteSession.m b/evernote-sdk-ios/EvernoteSession.m index c66296d..c942ea5 100755 --- a/evernote-sdk-ios/EvernoteSession.m +++ b/evernote-sdk-ios/EvernoteSession.m @@ -326,6 +326,9 @@ - (void)logout // Clear all clients [self clearAllClients]; + if (!authToken || authToken.length == 0) { + return; + } // Revoke the token, this is not necessary, but it's good practice [[EvernoteUserStore userStore] revokeLongSessionWithAuthenticationToken:authToken success:nil failure:nil]; }