You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2018/05/24 16:24:42 UTC
[4/4] qpid-broker-j git commit: QPID-7830: [Broker-J] Add null checks
for 'subject' and 'to'
QPID-7830: [Broker-J] Add null checks for 'subject' and 'to'
(cherry picked from commit dc2e9d425a4547e0efbf6d8de70ec0c90ecdbdc4)
Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/63f7b7e9
Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/63f7b7e9
Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/63f7b7e9
Branch: refs/heads/7.0.x
Commit: 63f7b7e949ac04ee7596ef6b78b816dddd0ab146
Parents: c14eb33
Author: Alex Rudyy <or...@apache.org>
Authored: Thu May 24 17:13:52 2018 +0100
Committer: Alex Rudyy <or...@apache.org>
Committed: Thu May 24 17:24:25 2018 +0100
----------------------------------------------------------------------
.../qpid/server/protocol/v1_0/type/messaging/Properties.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/63f7b7e9/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/type/messaging/Properties.java
----------------------------------------------------------------------
diff --git a/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/type/messaging/Properties.java b/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/type/messaging/Properties.java
index cb6c8b0..2fcc9ca 100644
--- a/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/type/messaging/Properties.java
+++ b/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/type/messaging/Properties.java
@@ -98,7 +98,7 @@ public class Properties implements NonEncodingRetainingSection<Properties>
public void setTo(String to)
{
- _to = NonEncodingRetainingSection.getCached(to);
+ _to = (to == null ? null : NonEncodingRetainingSection.getCached(to));
}
public String getSubject()
@@ -108,7 +108,7 @@ public class Properties implements NonEncodingRetainingSection<Properties>
public void setSubject(String subject)
{
- _subject = NonEncodingRetainingSection.getCached(subject);
+ _subject = (subject == null ? null : NonEncodingRetainingSection.getCached(subject));
}
public String getReplyTo()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org