title: Array of Lists throws NullReferenceException
body: <p>I am trying to make a 1d array of lists. I make it like this:</p>
  
  <pre><code>public static List&lt;string&gt;[] words = new List&lt;string&gt;[30];
  public static List&lt;string&gt;[] hints = new List&lt;string&gt;[30];
  </code></pre>
  
  <p>And I call it like this:</p>
  
  <pre><code>foreach (string item in vars.directory)
          {
              reader2 = new StreamReader(item);
              while (reader2.Peek() &gt; 0)
              {
                  string line = reader2.ReadLine();
                  if (line.StartsWith("#"))
                  {
                      vars.words[counter].Add(line.Substring(1, line.Length - 1)); //here
                  }
                  else if (line.StartsWith("-"))
                  {
                      vars.hints[counter].Add(line.Substring(1, line.Length - 1)); //another here
                  }
                  else if (line == "@end")
                  {
                      counter++;
                  }
              }
          }
  </code></pre>
  
  <p>I just wanted to add that vars is where I keep my public variables and that counter is indeed at 0 when the loop starts.</p>
  
  <p><strong>EDIT</strong>
  In my haste I forgot to add the question... oops...</p>
  
  <p>Here it is: When I call the add function (or any another function for that matter) it returns a null reference exception. How can I fix this?</p>