`i.FileName.Text` will throw when `i.FileName` is null.
Unless C# gets a `.?` operator, you need a conditional operator.

```c#
i.FileName == null ? i.Url.Text : i.FileName.Text