I have a simple helper class:

```
class WebsiteStatus
{
    public string siteName { get; set; }
    public Nullable<DateTime> lastDownTime { get; set; }
}

```

I make an array of the class based on the number of sites being evaluated:

```
string URLs = "http://www.qqq.com;http://www.rrr.com;http://www.ttt.com;";
string[] sites = URLs.Split(new[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
WebsiteStatus[] siteArray = new WebsiteStatus[sites.Count()];

```

When I try to input data into one of the objects in the array I'm getting a null exception error:

```
siteArray[0].siteName = sites[0];

```

![enter image description here](https://i.stack.imgur.com/mzs0i.png)

I don't understand why this is happening. What am I doing wrong?