title: invalid null pointer in xstring
body: <p>So I'm almost done with this assignment but now I'm having difficulties again. When I try to draw text from a question class I get invalid null pointer from xstring.  I have about 2 hours, so any help would really be appreciated</p>
  
  <p>Here's the question class:</p>
  
  <pre><code>class Question {
  
  public:
      int col;
      int row;
      bool dailyDouble;
      char* question;
      char* answer;
      double value;
      Question();
      Question(int, int, bool, char*, char*);
      bool checkAnswer(string);
      Question&amp; operator=(const Question&amp;);
  };
  
  
  
  Question::Question() {}
  
  Question::Question(int c, int r, bool d, char* q, char* a)
  {
      col = c; row = r; dailyDouble = d; question = q, answer = a;
      if(d)
          value = r * 200 * 2;
      else
          value = r * 200;
  }
  
  bool Question::checkAnswer(string answer)
  {
      if(answer.find("What is") &amp;&amp; answer.find(answer))
          return true;
      return false;
  }
  
  Question&amp; Question::operator=(const Question&amp;)
  {
      return *this;
  }
  </code></pre>
  
  <p>I have a draw text method (that works) but I'm running out of room, so this is the line that causes the error:</p>
  
  <pre><code> drawText((WinWidth/2)-200,(WinHeight/2) - 100, curQuestion.question);
  </code></pre>
  
  <p>any help would really be appreciated! </p>