You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ta...@apache.org on 2014/10/16 00:45:18 UTC

git commit: Throw JMSException is the destinatio name is null.

Repository: qpid-jms
Updated Branches:
  refs/heads/master 3fc2d8b1a -> bec6b5cec


Throw JMSException is the destinatio name is null.

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/bec6b5ce
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/bec6b5ce
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/bec6b5ce

Branch: refs/heads/master
Commit: bec6b5cec175dcdcd9a478dbb074bc202d7274fe
Parents: 3fc2d8b
Author: Timothy Bish <ta...@gmail.com>
Authored: Wed Oct 15 18:45:09 2014 -0400
Committer: Timothy Bish <ta...@gmail.com>
Committed: Wed Oct 15 18:45:09 2014 -0400

----------------------------------------------------------------------
 .../jms/message/JmsDefaultUnresolvedDestinationTransformer.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/bec6b5ce/qpid-jms-client/src/main/java/org/apache/qpid/jms/message/JmsDefaultUnresolvedDestinationTransformer.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/message/JmsDefaultUnresolvedDestinationTransformer.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/message/JmsDefaultUnresolvedDestinationTransformer.java
index 1d90cd0..1193686 100644
--- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/message/JmsDefaultUnresolvedDestinationTransformer.java
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/message/JmsDefaultUnresolvedDestinationTransformer.java
@@ -72,6 +72,10 @@ public class JmsDefaultUnresolvedDestinationTransformer implements JmsUnresolved
 
     @Override
     public JmsDestination transform(String destination) throws JMSException {
+        if (destination == null) {
+            throw new JMSException("Destination objects cannot have a null name value");
+        }
+
         return new JmsQueue(destination);
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org