so im working on a banning system and it keeps giving me an error saying
" NullReferenceException: Object reference not set to an instance of an object getBanReason.OnLoginFailure (PlayFab.PlayFabError error) (at Assets/Scripts/getBanReason.cs:43) PlayFab.Internal.PlayFabUnityHttp.OnResponse (System.String response, PlayFab.Internal.CallRequestContainer reqContainer) (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:220) UnityEngine.Debug:LogException(Exception) PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:226) PlayFab.Internal.<Post>d__12:MoveNext() (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:159) "
and this is the script
"
private void OnLoginFailure(PlayFabError error)
{
if (error.Error == PlayFabErrorCode.AccountBanned)
{
foreach (var item in error.ErrorDetails)
{
Debug.Log("Reason : " + item.Key + "\t" + "Expires : " + item.Value[0]);
}
}
}
"