Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit a246ede

Browse files
authored
[TouchRunner] Avoid a NRE when unable to configure the selected transport mechanism. (#106)
1 parent 2f0fad5 commit a246ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NUnitLite/TouchRunner/TouchRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public bool OpenWriter (string message)
376376
}
377377
writers.Add (new NUnitOutputTextWriter (
378378
this, defaultWriter, formatter, options.XmlMode));
379-
} else {
379+
} else if (defaultWriter != null) {
380380
writers.Add (defaultWriter);
381381
}
382382
} catch (Exception ex) {

0 commit comments

Comments
 (0)