You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
MaOreoreorui
pushed a commit
to MaOreoreorui/rocketmq-client-go
that referenced
this issue
Dec 27, 2023
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.
The text was updated successfully, but these errors were encountered: