{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/70","labels_url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/70/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/70/events","html_url":"https://github.com/aws/aws-sdk-unity/issues/70","id":85248088,"number":70,"title":"Null ref on bad FB auth","user":{"login":"hgray","id":2006948,"avatar_url":"https://avatars.githubusercontent.com/u/2006948?v=3","gravatar_id":"","url":"https://api.github.com/users/hgray","html_url":"https://github.com/hgray","followers_url":"https://api.github.com/users/hgray/followers","following_url":"https://api.github.com/users/hgray/following{/other_user}","gists_url":"https://api.github.com/users/hgray/gists{/gist_id}","starred_url":"https://api.github.com/users/hgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgray/subscriptions","organizations_url":"https://api.github.com/users/hgray/orgs","repos_url":"https://api.github.com/users/hgray/repos","events_url":"https://api.github.com/users/hgray/events{/privacy}","received_events_url":"https://api.github.com/users/hgray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-04T19:46:01Z","updated_at":"2015-06-09T14:44:33Z","closed_at":null,"body":"This one is even more obscure but caused me some confusion for a bit. If a bad access token from Facebook is passed in to Identity, we get this exception. At this point, doing a credentials.Clear() will not clear the issue and any subsequent requests to login, even as unauth will trigger the same error.\r\n\r\nCredential exception:System.NullReferenceException: Object reference not set to an instance of an object\r\n  at Amazon.CognitoIdentity.CognitoAWSCredentials.GetPoolCredentials () [0x000d0] in /Users/hgray/Documents/GSN/Mobile/GIT/aws-sdk-unity-samples/Cognito Sync Demo Project/Assets/AWSSDK/src/Services/CognitoIdentity/Custom/CognitoAWSCredentials.cs:616 \r\n  at Amazon.CognitoIdentity.CognitoAWSCredentials.GenerateNewCredentials () [0x0003c] in /Users/hgray/Documents/GSN/Mobile/GIT/aws-sdk-unity-samples/Cognito Sync Demo Project/Assets/AWSSDK/src/Services/CognitoIdentity/Custom/CognitoAWSCredentials.cs:568 \r\n  at Amazon.Runtime.RefreshingAWSCredentials.GetCredentials () [0x00018] in /Users/hgray/Documents/GSN/Mobile/GIT/aws-sdk-unity-samples/Cognito Sync Demo Project/Assets/AWSSDK/src/Core/Amazon.Runtime/AWSCredentials.cs:693 \r\n  at Amazon.CognitoIdentity.CognitoAWSCredentials.<GetCredentialsAsync>m__3F () [0x00000] in /Users/hgray/Documents/GSN/Mobile/GIT/aws-sdk-unity-samples/Cognito Sync Demo Project/Assets/AWSSDK/src/Services/CognitoIdentity/Custom/_unity/CognitoAWSCredentials.unity.cs:173 \r\n  at Amazon.CognitoIdentity.CognitoIdentityAsyncExecutor+<ExecuteAsync>c__AnonStorey2C`1[Amazon.Runtime.ImmutableCredentials].<>m__40 (System.Object state) [0x00023] in /Users/hgray/Documents/GSN/Mobile/GIT/aws-sdk-unity-samples/Cognito Sync Demo Project/Assets/AWSSDK/src/Services/CognitoIdentity/Custom/_unity/CognitoIdentityAsyncExecutor.cs:42 \r\nUnityEngine.Debug:LogError(Object)\r\nSaveManager:HandleCreds(AmazonCognitoIdentityResult`1) (at Assets/DemoScene/SyncCharacterSelection/SaveManager.cs:185)\r\nAmazon.CognitoIdentity.<ExecuteAsync>c__AnonStorey2D`1:<>m__41() (at Assets/AWSSDK/src/Services/CognitoIdentity/Custom/_unity/CognitoIdentityAsyncExecutor.cs:55)\r\nAmazon.Runtime.Internal.UnityMainThreadDispatcher:ProcessRequests() (at Assets/AWSSDK/src/Core/Amazon.Runtime/Pipeline/_unity/UnityMainThreadDispatcher.cs:88)\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/comments/110387431","html_url":"https://github.com/aws/aws-sdk-unity/issues/70#issuecomment-110387431","issue_url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/70","id":110387431,"user":{"login":"hgray","id":2006948,"avatar_url":"https://avatars.githubusercontent.com/u/2006948?v=3","gravatar_id":"","url":"https://api.github.com/users/hgray","html_url":"https://github.com/hgray","followers_url":"https://api.github.com/users/hgray/followers","following_url":"https://api.github.com/users/hgray/following{/other_user}","gists_url":"https://api.github.com/users/hgray/gists{/gist_id}","starred_url":"https://api.github.com/users/hgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgray/subscriptions","organizations_url":"https://api.github.com/users/hgray/orgs","repos_url":"https://api.github.com/users/hgray/repos","events_url":"https://api.github.com/users/hgray/events{/privacy}","received_events_url":"https://api.github.com/users/hgray/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T14:44:33Z","updated_at":"2015-06-09T14:44:33Z","body":"Interestingly, one thing which has changed with the 2.0 release, and part of what's been throwing me off is that you no longer support offline identity creation. Is there a reason that we can't create an identity when credentials is created if none is in the player prefs? I'd think it'd be better to have something to use, rather than \"unknown\", especially given that a mobile device is not guaranteed to have connectivity."}}