Skip to content

Commit

Permalink
Fix NullReferenceException if test failed with timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Jun 25, 2018
1 parent 69adc76 commit fd2f170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReportPortal.NUnitExtension/ReportPortalListener.Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void FinishTest(XmlDocument xmlDoc)
if (failureNode != null)
{
var failureMessage = failureNode.SelectSingleNode("./message").InnerText;
var failureStacktrace = failureNode.SelectSingleNode("./stack-trace").InnerText;
var failureStacktrace = failureNode.SelectSingleNode("./stack-trace")?.InnerText;

_testFlowIds[id].Log(new AddLogItemRequest
{
Expand Down

0 comments on commit fd2f170

Please sign in to comment.