title: Getting NullReferenceException on Microsoft.windows.controls.MessageBox vertical scrollbar click
body: <p>Getting NullReferenceException on Microsoft.windows.controls.MessageBox when i click the arrow(up or down) in the vertical scrollbar</p>
  
  <pre><code>List&lt;string&gt; errors = new List&lt;string&gt;();
  
  errors = selectedJob.ValidationErrors;
  if (errors != null &amp;&amp; errors.Count() &gt; 0)
  {
      var msg = string.Join(Environment.NewLine,  errors);                                
      MessageBoxResult result =  Microsoft.Windows.Controls.MessageBox.Show(msg, title, System.Windows.MessageBoxButton.OK, System.Windows.MessageBoxImage.Error);
  }
  </code></pre>
  
  <p>Any suggesstions would be helpful, I can't seem to figure out whats wrong here. Thanks in advance</p>