From b3718716a9dfd9603779957a589598699ed2ef04 Mon Sep 17 00:00:00 2001 From: Dirk Rombauts Date: Wed, 28 May 2014 13:03:40 +0200 Subject: [PATCH] Avoid crash on start --- src/Pickles/Pickles.UserInterface/MainWindowViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pickles/Pickles.UserInterface/MainWindowViewModel.cs b/src/Pickles/Pickles.UserInterface/MainWindowViewModel.cs index e6ce85234..93d046f4e 100644 --- a/src/Pickles/Pickles.UserInterface/MainWindowViewModel.cs +++ b/src/Pickles/Pickles.UserInterface/MainWindowViewModel.cs @@ -454,7 +454,7 @@ private void MainWindowViewModel_PropertyChanged(object sender, PropertyChangedE case "TestResultsFile": { - if (this.testResultsFile.Split(';').All(trf => this.fileSystem.File.Exists(trf))) + if (this.testResultsFile == null || this.testResultsFile.Split(';').All(trf => this.fileSystem.File.Exists(trf))) { this.IsTestResultsFileValid = true; }