title: " NSRangeException " problem
body: <p>I am trying to build an iPhone app. But at the time of compiling there is a message showing that </p>
  
  <pre><code>[Session started at 2009-01-29 18:25:40 +0600.]
  2009-01-29 18:25:44.238 SimpleGame[3691:20b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (0)'
  2009-01-29 18:25:44.247 SimpleGame[3691:20b] Stack: ( .........
  </code></pre>
  
  <p>Actually when I do active these code then this message is shown, code are:</p>
  
  <pre><code>NSMutableArray *todoArray = [[NSMutableArray alloc] init];
  self.todos = todoArray;
  [todoArray release];
  </code></pre>
  
  <p>How can I overcome this problem?</p>