Closed jbl428 closed 3 years ago
During CI, test step have occasionally failed with nil pointer dereference panic.
(Ex: https://github.com/jbl428/goderive/runs/2809167722?check_suite_focus=true)
I have found that the random function sometimes returns nil when pointer type is given and some test codes does not handle nil case.
random
nil
Thank you, great fix <3
During CI, test step have occasionally failed with nil pointer dereference panic.
(Ex: https://github.com/jbl428/goderive/runs/2809167722?check_suite_focus=true)
I have found that the
random
function sometimes returnsnil
when pointer type is given and some test codes does not handlenil
case.