diff --git a/lib/connection.js b/lib/connection.js index d4b49197..6fc9d54f 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -475,6 +475,10 @@ Connection.prototype._processCallPacket = function(packet, keys) { const callback = this._remoteCallbackWrapper.bind(this, packetId); + if (!args) { + return callback(errors.ERR_INVALID_SIGNATURE); + } + try { this.application.callMethod(this, interfaceName, methodName, args, callback);