We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 345977d + e5cfd59 commit 0cdd170Copy full SHA for 0cdd170
Scripts/Service/Unity/UnityHttpService.cs
@@ -120,8 +120,8 @@ private static HttpResponse CreateResponse(UnityWebRequest unityWebRequest)
120
return new HttpResponse
121
{
122
Url = unityWebRequest.url,
123
- Bytes = unityWebRequest.downloadHandler.data,
124
- Text = unityWebRequest.downloadHandler.text,
+ Bytes = unityWebRequest.downloadHandler?.data,
+ Text = unityWebRequest.downloadHandler?.text,
125
IsSuccessful = !unityWebRequest.isHttpError && !unityWebRequest.isNetworkError,
126
IsHttpError = unityWebRequest.isHttpError,
127
IsNetworkError = unityWebRequest.isNetworkError,
0 commit comments