Skip to content

Commit

Permalink
Fixes protocol value checking before converting to string (#360)
Browse files Browse the repository at this point in the history
fixes #359
  • Loading branch information
cantidio authored and hyperlink committed Apr 30, 2016
1 parent 2467b3b commit 3813c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/protocol/protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ function encodeMessage(message) {

var value = message.value;

if (value !== null) {
if (value !== null && value !== undefined) {
if (Buffer.isBuffer(value)) {
m.Int32BE(value.length);
} else {
Expand Down

0 comments on commit 3813c7d

Please sign in to comment.