Browse Source

Fix NullReferenceException in TestResultsReader.Dispose when connecting the named pipe failed.

pull/512/head
Daniel Grunwald 11 years ago
parent
commit
4b4518db86
  1. 6
      src/AddIns/Analysis/UnitTesting/TestRunner/TestResultsReader.cs

6
src/AddIns/Analysis/UnitTesting/TestRunner/TestResultsReader.cs

@ -61,8 +61,10 @@ namespace ICSharpCode.UnitTesting @@ -61,8 +61,10 @@ namespace ICSharpCode.UnitTesting
public void Dispose()
{
reader.Dispose();
namedPipe.Dispose();
if (reader != null)
reader.Dispose();
if (namedPipe != null)
namedPipe.Dispose();
}
public event EventHandler<TestFinishedEventArgs> TestFinished;

Loading…
Cancel
Save