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

Skip to content

Commit 2631355

Browse files
committed
Fixed issue with null items list.
1 parent 2399981 commit 2631355

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

source/core/ut_suite_builder.pkb

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,16 @@ create or replace package body ut_suite_builder is
265265
) is
266266
l_test ut_test;
267267
begin
268-
for i in 1 .. a_suite.items.count loop
269-
if a_suite.items(i) is of (ut_test) then
270-
l_test := treat( a_suite.items(i) as ut_test);
271-
l_test.before_each_list := a_before_each_list;
272-
l_test.after_each_list := a_after_each_list;
273-
a_suite.items(i) := l_test;
274-
end if;
275-
end loop;
268+
if a_suite.items is not null then
269+
for i in 1 .. a_suite.items.count loop
270+
if a_suite.items(i) is of (ut_test) then
271+
l_test := treat( a_suite.items(i) as ut_test);
272+
l_test.before_each_list := a_before_each_list;
273+
l_test.after_each_list := a_after_each_list;
274+
a_suite.items(i) := l_test;
275+
end if;
276+
end loop;
277+
end if;
276278
end;
277279

278280
procedure add_procedures_from_annot(

0 commit comments

Comments
 (0)