Skip to content

Commit

Permalink
Fixed build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasherceg committed Aug 12, 2023
1 parent 9a51642 commit f8d4a5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Framework/Framework/Routing/UrlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ private static bool ContainsOnlyValidUrlChars(string url)
}
else
{
return Uri.EscapeDataString(value.ToString());
var strVal = value.ToString();
return strVal == null ? null : Uri.EscapeDataString(strVal);
}
}
}
Expand Down

0 comments on commit f8d4a5e

Please sign in to comment.