diff --git a/modules/getHashString.js b/modules/getHashString.js index 3e31b78c..386fad0d 100644 --- a/modules/getHashString.js +++ b/modules/getHashString.js @@ -41,6 +41,8 @@ const Cc = Components.classes; const Ci = Components.interfaces; function getHashString(aString) { + if (!aString) + return ''; const hasher = Cc['@mozilla.org/security/hash;1'] .createInstance(Ci.nsICryptoHash); hasher.init(Ci.nsICryptoHash.MD5);