Skip to content

Commit

Permalink
ARTEMIS-2023 Fix NPE
Browse files Browse the repository at this point in the history
(cherry picked from commit 4c51848)
  • Loading branch information
michaelandrepearce authored and clebertsuconic committed Aug 14, 2018
1 parent d183070 commit 62e1d7e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -640,7 +640,7 @@ public void decode(final ActiveMQBuffer buffer) {

deserializationWhiteList = BufferHelper.readNullableSimpleStringAsString(buffer);

enable1xPrefixes = buffer.readableBytes() > 0 ? buffer.readBoolean() : null;
enable1xPrefixes = buffer.readableBytes() > 0 ? buffer.readBoolean() : ActiveMQClient.DEFAULT_ENABLE_1X_PREFIXES;

enableSharedClientID = buffer.readableBytes() > 0 ? buffer.readBoolean() : ActiveMQClient.DEFAULT_ENABLED_SHARED_CLIENT_ID;

Expand Down

0 comments on commit 62e1d7e

Please sign in to comment.