mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-10 18:24:53 +00:00
feat: IcdUriBuilder better supports null Uris
This commit is contained in:
@@ -62,6 +62,7 @@ namespace ICD.Common.Utils
|
||||
/// Constructor.
|
||||
/// </summary>
|
||||
public IcdUriBuilder()
|
||||
: this((Uri)null)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -80,6 +81,9 @@ namespace ICD.Common.Utils
|
||||
/// <param name="uri"></param>
|
||||
public IcdUriBuilder(Uri uri)
|
||||
{
|
||||
if (uri == null)
|
||||
return;
|
||||
|
||||
if (!uri.IsAbsoluteUri)
|
||||
uri = new Uri(Uri.UriSchemeHttp + Uri.SchemeDelimiter + uri);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user