Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 052373f

Browse files
committed
Fixed case when test result is null or count=0
1 parent 1e4181d commit 052373f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/reporters/ut_teamcity_reporter.tpb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ create or replace type body ut_teamcity_reporter is
8989
,a_out => trim(l_std_err_msg)));
9090
self.print_text(ut_teamcity_reporter_helper.test_failed(a_test_name => l_test_full_name
9191
,a_msg => 'Error occured'
92-
,a_details => trim(l_std_err_msg) || a_test.results(1)
93-
.message));
92+
,a_details => trim(l_std_err_msg) || case when a_test.results is not null and a_test.results.count>0 then a_test.results(1)
93+
.message end));
9494
elsif a_test.results is not null and a_test.results.count > 0 then
9595
for i in 1 .. a_test.results.count loop
9696

0 commit comments

Comments
 (0)