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

(cherry picked from commit cf71b7292a)
This commit is contained in:
Clebert Suconic 2017-02-16 21:03:24 -05:00
parent 6d0f28291f
commit f492bd9786
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