Smth is wrong with index (System.NullReferenceException) : <p>Need help to figure it out what's wrong with my code.
I get this error:
System.NullReferenceException: 'Object reference not set to an instance of an object.' at this line:</p>

<pre><code>post[0].Author = "Author at post 0";
</code></pre>

<p>The Code:</p>

<pre><code>class Logg
{
    public string Title { get; set; }
    public string Text { get; set; }
    public string Author { get; set; }
    public DateTime Date { get; set; }
    public static int Count = 0; //Count += 1 from Main
}
class Program
{
    static void Main(string[] args)
    {            
        List&lt;Logg[]&gt; LoggBok = new List&lt;Logg[]&gt;();
        Logg[] post = new Logg[10];

        LoggBok.Add(post);
        post[0].Author = "Author at post 0";
        post[0].Title = "Titel at post 0";
        post[0].Text = "My text at post 0";
        post[0].Date = DateTime.Now;

        post[1].Author = "Author 1 at post 1";
        post[1].Title = "Titel 1 at post 1";
        post[1].Text = "My text 1 at post 1";
        post[1].Date = DateTime.Now;

        post[2].Author = "Author 2 at post 2";
        post[2].Title = "Titel 2 at post 2";
        post[2].Text = "My text 2 at post 2";
        post[2].Date = DateTime.Now;

        Logg.Count = 3;
</code></pre>
