title: Windows Store App 8.1 Crashes. PRISM
body: <p>I'm creating a new project from the "PRISM for windows runtime 8.1". And every time i'm trying to click on the settings charm the application crashes. But creating a new project from the 8.0 doesnt crash the app. Anybody knows how to fix this? </p>
  
  <p>The error i get is </p>
  
  <blockquote>
    <p>Message = "System.NullReferenceException: Object reference not set to
    an instance of an object.\r\n   at
    Microsoft.Practices.Prism.StoreApps.MvvmAppBase.OnCommandsRequested(SettingsPane
    sender, SettingsPaneCommandsRequestedEventArgs args)"</p>
  </blockquote>
  
  <p>Edit: This is a file that autogenerated when crash.</p>
  
  <pre><code>namespace TestApp
  {
  #if !DISABLE_XAML_GENERATED_MAIN
      public static class Program
      {
          [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
          [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
          static void Main(string[] args)
          {
              global::Windows.UI.Xaml.Application.Start((p) =&gt; new App());
          }
      }
  #endif
  
      partial class App : global::Microsoft.Practices.Prism.StoreApps.MvvmAppBase
      {
          [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
          private bool _contentLoaded;
  
          [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
          [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
          public void InitializeComponent()
          {
              if (_contentLoaded)
                  return;
  
              _contentLoaded = true;
  #if DEBUG &amp;&amp; !DISABLE_XAML_GENERATED_BINDING_DEBUG_OUTPUT
              DebugSettings.BindingFailed += (sender, args) =&gt;
              {
                  global::System.Diagnostics.Debug.WriteLine(args.Message);
              };
  #endif
  #if DEBUG &amp;&amp; !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
              UnhandledException += (sender, e) =&gt;
              {
                  if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break(); &lt;---- the debugger stays on this line.
              };
  #endif
          }
      }
  }
  </code></pre>