activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject activemq-artemis git commit: fixing NPE
Date Sun, 05 Mar 2017 04:13:18 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/artemis-1009 3b7337009 -> 72860f652


fixing NPE


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/72860f65
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/72860f65
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/72860f65

Branch: refs/heads/artemis-1009
Commit: 72860f652cf50605ae5b509ef48ceecd7ffd38b2
Parents: 3b73370
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Sat Mar 4 23:13:15 2017 -0500
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Sat Mar 4 23:13:15 2017 -0500

----------------------------------------------------------------------
 .../apache/activemq/artemis/protocol/amqp/broker/AMQPMessage.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/72860f65/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPMessage.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPMessage.java
b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPMessage.java
index bb25b21..9a22379 100644
--- a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPMessage.java
+++ b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPMessage.java
@@ -363,7 +363,7 @@ public class AMQPMessage extends RefCountMessage {
 
    @Override
    public boolean isDurable() {
-      if (getHeader() != null) {
+      if (getHeader() != null && getHeader().getDurable() != null) {
          return getHeader().getDurable().booleanValue();
       } else {
          return false;


Mime
View raw message