This commit is contained in:
Michael Pearce 2018-02-06 03:16:53 +00:00
commit 56e1df3c3a
1 changed files with 5 additions and 1 deletions

View File

@ -437,7 +437,11 @@ public class CoreMessage extends RefCountMessage implements ICoreMessage {
@Override @Override
public CoreMessage setAddress(SimpleString address) { public CoreMessage setAddress(SimpleString address) {
if (validBuffer && !address.equals(this.address)) { if (address == null && this.address == null) {
// no-op so just return
return this;
}
if (validBuffer && (address == null || !address.equals(this.address))) {
messageChanged(); messageChanged();
} }
this.address = address; this.address = address;