diff --git a/ReportPortal.NUnitExtension/ReportPortalListener.Test.cs b/ReportPortal.NUnitExtension/ReportPortalListener.Test.cs index 50dcb97..99bcb82 100644 --- a/ReportPortal.NUnitExtension/ReportPortalListener.Test.cs +++ b/ReportPortal.NUnitExtension/ReportPortalListener.Test.cs @@ -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 {