In my controller code I am using: Request.Url.<Something>. ReSharper suggests that Request.Url can be null.
So, when exactly can Request.Url be null? I am not talking about testing, I am interested only about an Application that is live / has already been deployed.
Please note that I have not received any NullReferenceExceptions from using Request.Url up to this point.
HttpRequestBaseis a class and ReSharper sees it as an actual Class, nothing more (theoretically, it can benull). So it does not analyze the usage of this specific Class.In reality, I think that
Request.Urlwill never benull, so just ignore ReSharper in this case.