diff --git a/Code/Tools/TestImpactFramework/Runtime/Code/Source/TestEngine/TestImpactTestEngineInstrumentedRun.cpp b/Code/Tools/TestImpactFramework/Runtime/Code/Source/TestEngine/TestImpactTestEngineInstrumentedRun.cpp index e1e230b3a7..bade8fef81 100644 --- a/Code/Tools/TestImpactFramework/Runtime/Code/Source/TestEngine/TestImpactTestEngineInstrumentedRun.cpp +++ b/Code/Tools/TestImpactFramework/Runtime/Code/Source/TestEngine/TestImpactTestEngineInstrumentedRun.cpp @@ -15,7 +15,7 @@ namespace TestImpact { AZStd::optional ReleaseTestRun(AZStd::optional, TestCoverage>>& testRunAndCoverage) { - if (testRunAndCoverage.has_value() && testRunAndCoverage.has_value()) + if (testRunAndCoverage.has_value() && testRunAndCoverage->first.has_value()) { return AZStd::move(testRunAndCoverage.value().first); }