title: Object reference not set to an instance of an object in xamarin ios app group
body: <p>I am trying to build today widget in Xamarin.
  In the simulator everything works, but when I run it on real device my widget crashes with the following exception:</p>
  
  <blockquote>
    <p>object reference not set to an instance of an object.</p>
  </blockquote>
  
  <p>My code is:</p>
  
  <pre><code>var defs = new NSUserDefaults("group.com.gto.extension", NSUserDefaultsType.SuiteName);
  defs.Synchronize(); 
  
  var equities = defs.ValueForKey(new NSString("key1"));--&gt; this row crashes my widget.
  </code></pre>