diff --git a/src/TokenizerBuilder.js b/src/TokenizerBuilder.js index 9ef5c6a2..a36a1769 100644 --- a/src/TokenizerBuilder.js +++ b/src/TokenizerBuilder.js @@ -27,7 +27,7 @@ var DictionaryLoader = require("./loader/NodeDictionaryLoader"); * @constructor */ function TokenizerBuilder(option) { - if (option.dicPath == null) { + if (!option || option.dicPath == null) { this.dic_path = "dict/"; } else { this.dic_path = option.dicPath;