What did you do (The steps to reproduce)?
The String() method in SendResult cause a panic when MessageQueue field is nil. This happens beacuse String() method tries to access MessageQueue.String() without checking if MessageQueue is nil.
What did you expect to see?
The String() method should not panic, even when MessageQueue is nil. Instead, it should return a string that clearly indicates MessageQueue is nil.
BUG REPORT
Please describe the issue you observed:
What did you do (The steps to reproduce)? The
String()
method inSendResult
cause a panic whenMessageQueue
field isnil
. This happens beacuseString()
method tries to accessMessageQueue.String()
without checking ifMessageQueue
isnil
.What did you expect to see? The String() method should not panic, even when MessageQueue is nil. Instead, it should return a string that clearly indicates MessageQueue is nil.