Hello, I want to show the player if, why and how long he is banned this is my code: if(error.Error == PlayFabErrorCode.AccountBanned) { foreach (var item in error.ErrorDetails) { string banReason = item.Key; string banTime = item.Value[0]; } } I always get this error message because of the first line: NullReferenceException: Object reference not set to an instance of an object.