NO-JIRA Remove Property shouldn't invalidate buffer if not found

This commit is contained in:
Clebert Suconic 2017-02-16 21:03:24 -05:00
parent bcecda73f5
commit cf71b7292a
1 changed files with 6 additions and 2 deletions

View File

@ -859,9 +859,13 @@ public abstract class MessageImpl implements MessageInternal {
@Override
public Object removeProperty(final SimpleString key) {
bufferValid = false;
Object oldValue = properties.removeProperty(key);
return properties.removeProperty(key);
if (oldValue != null) {
bufferValid = false;
}
return oldValue;
}
@Override