Go 1.21 changed the behavior of panic(nil) in a way that was at odds with how the agent handled that case. This PR corrects for it by checking for the new return value from recover() introduced at 1.21 as well as the nil return value which go provided in previous versions.
Go 1.21 changed the behavior of
panic(nil)
in a way that was at odds with how the agent handled that case. This PR corrects for it by checking for the new return value fromrecover()
introduced at 1.21 as well as thenil
return value which go provided in previous versions.