[bugfix] [cpp-ue4] API often tries to set reference to null when calling GetHttpRetryManager (#10277)

* [cpp-ue4] implemented null check and fatal log for GetHttpRetryManager]

* [cpp-ue4] reimplemented null check as checkf rather than Fatail UE_LOG

* [cpp-ue4] regenerated samples and docs
This commit is contained in:
Bradley Friedman
2021-08-27 00:57:14 -04:00
committed by GitHub
parent ae5db7ee20
commit 3446bc6337
4 changed files with 4 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ void OpenAPIPetApi::SetHttpRetryManager(FHttpRetrySystem::FManager& InRetryManag
FHttpRetrySystem::FManager& OpenAPIPetApi::GetHttpRetryManager()
{
checkf(RetryManager, TEXT("OpenAPIPetApi: RetryManager is null. You may have meant to set it with SetHttpRetryManager first, or you may not be using a custom RetryManager at all."))
return *RetryManager;
}