Set content to empty string if null or undefined

This commit is contained in:
Sebastián Katzer 2019-03-01 19:58:15 +01:00
parent 9cbb6b8f9a
commit 56dba89008

View File

@ -199,7 +199,7 @@ exports.print = function (content, options, callback, scope)
var fn = this._createCallbackFn(callback, scope), var fn = this._createCallbackFn(callback, scope),
params = this._mergeWithDefaults(options || {}); params = this._mergeWithDefaults(options || {});
exec(fn, null, 'Printer', 'print', [content, params]); exec(fn, null, 'Printer', 'print', [content || '', params]);
}; };
/** /**