diff --git a/lib/src/main/java/io/ably/lib/types/BaseMessage.java b/lib/src/main/java/io/ably/lib/types/BaseMessage.java index e2d0168b9..666981fd4 100644 --- a/lib/src/main/java/io/ably/lib/types/BaseMessage.java +++ b/lib/src/main/java/io/ably/lib/types/BaseMessage.java @@ -131,7 +131,7 @@ public void encode(ChannelOptions opts) throws AblyException { encoding = ((encoding == null) ? "" : encoding + "/") + "utf-8"; } } else if(!(data instanceof byte[])) { - throw AblyException.fromErrorInfo(new ErrorInfo("Invalid message data or encoding", 400, 40013)); + throw AblyException.fromErrorInfo(new ErrorInfo("Invalid message data or encoding", 400, 40013)); } } if (opts != null && opts.encrypted) {