title: Object reference not set to an instance of an object
body: <pre><code>public Player(string name, List&lt;Card&gt; cards)
  {
     this.name = name;
     try
     {
        this.stack.insertCards(cards);//Here is the NullReferenceExeption
     }
     catch (Exception e)
     {                
        throw e;
     }
  }
  
  public void insertCards(List&lt;Card&gt; cards)
  {
     stack.AddRange(cards);
  }
  
  public List&lt;Card&gt; GetSevenCards() //the Player gets the Cards from this function
  {
     List&lt;Card&gt; list = new List&lt;Card&gt;();
     int ran;
     Random r = new Random();
     for (int i = 0; i &lt; 7; i++)
     {
        ran = r.Next(0, stack.Count()-1);
        list.Add(stack[ran]);
        stack.RemoveAt(ran);
     }
     return list;
  }
  </code></pre>
  
  <p>the stack gets a cardlist of 7 Cards</p>