diff --git a/src/node/db/API.js b/src/node/db/API.js index 68a57d7d0..4a1371ba5 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -154,6 +154,13 @@ Example returns: */ exports.setText = function(padID, text, callback) { + //text is required + if(typeof text != "string") + { + callback(new customError("text is no string","apierror")); + return; + } + //get the pad getPadSafe(padID, true, function(err, pad) {