[ISSUE #3666] fix npe (#4136)

Co-authored-by: hening <ninghe.hn@alibaba-inc.com>
This commit is contained in:
hn
2022-04-08 19:20:49 +08:00
committed by GitHub
co-authored by hening
parent 50f2b32451
commit 47561bdd85
@@ -1554,7 +1554,7 @@ public class DefaultMessageStore implements MessageStore {
return false;
}
Map<String, String> prop = dispatchRequest.getPropertiesMap();
if (prop == null && prop.isEmpty()) {
if (prop == null || prop.isEmpty()) {
return false;
}
String multiDispatchQueue = prop.get(MessageConst.PROPERTY_INNER_MULTI_DISPATCH);