Skip to content

Commit

Permalink
Fixes protocol value checking before converting to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Cantidio Fontes committed Apr 29, 2016
1 parent 2467b3b commit abbba6b
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 abbba6b

Please # to comment.