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. 2
      src/AddIns/Analysis/UnitTesting/TestRunner/TestResultsReader.cs

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

@ -61,7 +61,9 @@ namespace ICSharpCode.UnitTesting
public void Dispose() public void Dispose()
{ {
if (reader != null)
reader.Dispose(); reader.Dispose();
if (namedPipe != null)
namedPipe.Dispose(); namedPipe.Dispose();
} }

Loading…
Cancel
Save