diff options
-rw-r--r-- | src/pinyin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp index 70a5385..471046e 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -369,7 +369,7 @@ bool pinyin_iterator_add_phrase(import_iterator_t * iter, bool result = false; - if (NULL == pinyin) + if (NULL == phrase || NULL == pinyin) return result; /* check whether the phrase exists in phrase table */ |