Skip to content

Commit

Permalink
Fix validate message bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fankai committed May 1, 2019
1 parent 7b7b456 commit 3d6933f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public void validateMessage(Message message) {
Map<String, Object> attrs = message.getAttrs();
if (attrs == null) return;
for (Map.Entry<String, Object> entry : attrs.entrySet()) {
if (entry.getValue() == null) return;
if (!(entry.getValue() instanceof String)) return;
if (entry.getValue() == null) continue;
if (!(entry.getValue() instanceof String)) continue;

String value = (String) entry.getValue();
if (value.length() > _32K) {
Expand Down

2 comments on commit 3d6933f

@monir12342
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@monir12342
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Please sign in to comment.