You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by di...@apache.org on 2019/05/14 12:59:49 UTC

[rocketmq] branch develop updated (3456f81 -> 08b62fc)

This is an automated email from the ASF dual-hosted git repository.

dinglei pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git.


    omit 3456f81  Validate message before sending
     new 08b62fc  Add null point check before send message with namespace

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (3456f81)
            \
             N -- N -- N   refs/heads/develop (08b62fc)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../rocketmq/client/producer/DefaultMQProducer.java      | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)


[rocketmq] 01/01: Add null point check before send message with namespace

Posted by di...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dinglei pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git

commit 08b62fca024cc9bfa496c3c925bbf8d877919293
Author: ShannonDing <li...@163.com>
AuthorDate: Tue May 14 20:59:19 2019 +0800

    Add null point check before send message with namespace
---
 .../main/java/org/apache/rocketmq/client/producer/DefaultMQProducer.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/src/main/java/org/apache/rocketmq/client/producer/DefaultMQProducer.java b/client/src/main/java/org/apache/rocketmq/client/producer/DefaultMQProducer.java
index 3a26e83..d5fbde0 100644
--- a/client/src/main/java/org/apache/rocketmq/client/producer/DefaultMQProducer.java
+++ b/client/src/main/java/org/apache/rocketmq/client/producer/DefaultMQProducer.java
@@ -331,6 +331,7 @@ public class DefaultMQProducer extends ClientConfig implements MQProducer {
     @Override
     public SendResult send(
         Message msg) throws MQClientException, RemotingException, MQBrokerException, InterruptedException {
+        Validators.checkMessage(msg,this);
         msg.setTopic(withNamespace(msg.getTopic()));
         return this.defaultMQProducerImpl.send(msg);
     }