Browse Source

Merge pull request #9901 from wangj90/fix/http-proxy

Fix object reference not set to an instance of an object for http proxy
pull/9914/head
maliming 5 years ago
committed by GitHub
parent
commit
d8b6f098fa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/DynamicProxying/UrlBuilder.cs

4
framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/DynamicProxying/UrlBuilder.cs

@ -132,14 +132,14 @@ namespace Volo.Abp.Http.Client.DynamicProxying
return true; return true;
} }
private static string ConvertValueToString([NotNull] object value) private static string ConvertValueToString([CanBeNull] object value)
{ {
if (value is DateTime dateTimeValue) if (value is DateTime dateTimeValue)
{ {
return dateTimeValue.ToUniversalTime().ToString("O"); return dateTimeValue.ToUniversalTime().ToString("O");
} }
return value.ToString(); return value?.ToString();
} }
} }
} }

Loading…
Cancel
Save