title: Weird crash when accessing NSMutableArray
body: <p>I add objects to an NSMutableArray and print out its content. </p>
  
  <p>When adding the first object it works and the array says count is 1.</p>
  
  <p>When I add the second object, is shows the array has a count of 2, but when accessing the array directly after that the app crashes.</p>
  
  <pre><code>[sharedsArray addObject:noteToAdd];
  
  NSLog(@"The count of the array is %d", [sharedArray count]);
  
  // Write the array to file
  NSLog(@"Filepath is %@", filePath);
  NSLog(@"shared array is %@", sharedArray);
  
  [sharedArray writeToFile:filePath atomically:YES];
  </code></pre>
  
  <p>The app crashes on either of these 2 statements</p>
  
  <pre><code> NSLog(@"shared array is %@", sharedArray);
  
  [sharedArray writeToFile:filePath atomically:YES];
  </code></pre>
  
  <p>because of accessing the sharedArray. I dont see why it doesnt crash when checking its count, but it crashes when checking its contents. </p>
  
  <p>The contents is NSMutableDictionaries. </p>
  
  <p>Cant post images.</p>
  
  <pre><code>0 objc_msgSend
  1&lt;????&gt;
  2 _CFAppendXML0
  3 _CFAppendXML0
  4 _CFPropertyListCreateXMLData
  5 CFPropertyListCreateXMLData
  6 -[NSArray(NSArray)writeToFile:Atomically:]
  </code></pre>