title: Qt read acces violation at:0x0, flags=0x0 (first chance)
body: <p>I have a very simple piece of code as follows: </p>
  
  <pre><code>Letter* Vakje::geefLetter() const
  {
      return m_letter;
  }
  </code></pre>
  
  <p>The class Vakje gets initialized with a NULL-pointer for <code>m_letter</code>, but I'm still getting a read access violation error, could someone please help?</p>
  
  <p>this is the code that calls the function: </p>
  
  <pre><code>bool Spelbord::positionIsEmpty(int rij, int kolom) { 
      if (vakjes[rij][kolom]-&gt;geefLetter()==nullptr) return true;
      else return false; 
  }
  </code></pre>