Closed geodimm closed 2 years ago
Please ensure all items are complete before opening.
https://github.com/ibm-messaging/mq-golang/blob/fa8d9eb047f8ea5cd87d9c237e6e52d65f32d8d5/ibmmq/mqiDLH.go#L134 causes NewMQDLH to panic as it's trying to access the PutDate and PutTime fields of a nil struct.
NewMQDLH
PutDate
PutTime
nil
Copy over the original put timestamp from the MQMD struct only if it's not null
Tests have been added to assert the expected behaviour. Without the code change, the code would panic.
Links to the github issue(s) (if present) that this pull request is resolving.
Thanks for thie one.
Please ensure all items are complete before opening.
What
https://github.com/ibm-messaging/mq-golang/blob/fa8d9eb047f8ea5cd87d9c237e6e52d65f32d8d5/ibmmq/mqiDLH.go#L134 causes
NewMQDLH
to panic as it's trying to access thePutDate
andPutTime
fields of anil
struct.How
Copy over the original put timestamp from the MQMD struct only if it's not null
Testing
Tests have been added to assert the expected behaviour. Without the code change, the code would panic.
Issues
Links to the github issue(s) (if present) that this pull request is resolving.