Skip to content

Commit 9e126ab

Browse files
author
Morten Nielsen
committed
Fix null warning
1 parent cddaacd commit 9e126ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WinUIExSample/MockOAuthServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Signed in. You can close this window now.</div></body></html>
9090
""");
9191
foreach (var key in context.Request.QueryString.AllKeys)
9292
{
93-
writer.WriteLine($"<input type=\"hidden\" name=\"{key}\" value=\"{context.Request.QueryString[key].Replace("\"", "&quot;")}\" />");
93+
writer.WriteLine($"<input type=\"hidden\" name=\"{key}\" value=\"{context.Request.QueryString[key]?.Replace("\"", "&quot;")}\" />");
9494
}
9595
writer.WriteLine("</form></div>");
9696
writer.WriteLine("<hr/><b>Values sent:</b><br/>");

0 commit comments

Comments
 (0)