Getting NullReferenceException on Microsoft.windows.controls.MessageBox when i click the arrow(up or down) in the vertical scrollbar
List<string> errors = new List<string>();
errors = selectedJob.ValidationErrors;
if (errors != null && errors.Count() > 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);
}
Any suggesstions would be helpful, I can't seem to figure out whats wrong here. Thanks in advance