Skip to content

Commit

Permalink
#3017: missed null-conditional operator
Browse files Browse the repository at this point in the history
git-svn-id: https://src.heuristiclab.com/svn/core/trunk@18002 2abd9481-f8db-48e9-bd25-06bc13291c1b
  • Loading branch information
jkarder committed Jul 1, 2021
1 parent 3ae7dbf commit 1dae6ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static void RunAlgorithm(IAlgorithm a) {
a.ExceptionOccurred += (sender, e) => { ex = e.Value; };
a.Prepare();
a.Start();
Assert.IsNull(ex, ex.ToString());
Assert.IsNull(ex, ex?.ToString());
}

public static double GetDoubleResult(IAlgorithm a, string resultName) {
Expand Down

0 comments on commit 1dae6ae

Please sign in to comment.