diff options
| author | Keith Wall <kwall@apache.org> | 2011-11-09 08:59:26 +0000 |
|---|---|---|
| committer | Keith Wall <kwall@apache.org> | 2011-11-09 08:59:26 +0000 |
| commit | 3c20bd66ba063f52522fb19ca4a241f6c4e720d4 (patch) | |
| tree | 82431fdd1dad8e5c53c0431425b4088609bf7d52 /qpid/java/common/src/main | |
| parent | cc6ee2720ce235498297d76f35da4aea2c557de2 (diff) | |
| download | qpid-python-3c20bd66ba063f52522fb19ca4a241f6c4e720d4.tar.gz | |
QPID-3519: refactor consumer argument handling
Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1199664 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common/src/main')
| -rw-r--r-- | qpid/java/common/src/main/java/org/apache/qpid/framing/FieldTable.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qpid/java/common/src/main/java/org/apache/qpid/framing/FieldTable.java b/qpid/java/common/src/main/java/org/apache/qpid/framing/FieldTable.java index 721c821bab..4a126b8504 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/framing/FieldTable.java +++ b/qpid/java/common/src/main/java/org/apache/qpid/framing/FieldTable.java @@ -832,9 +832,12 @@ public class FieldTable public void addAll(FieldTable fieldTable) { initMapIfNecessary(); - _encodedForm = null; - _properties.putAll(fieldTable._properties); - recalculateEncodedSize(); + if (fieldTable._properties != null) + { + _encodedForm = null; + _properties.putAll(fieldTable._properties); + recalculateEncodedSize(); + } } public static Map<String, Object> convertToMap(final FieldTable fieldTable) |
