From 73480fe556f32aa9ac6b5bd500426b26ce9ae580 Mon Sep 17 00:00:00 2001 From: Devin Date: Thu, 4 Apr 2019 11:01:43 +0800 Subject: [PATCH] Fix bug #8 --- LearnEnglishBySubtitle/SentenceParse.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LearnEnglishBySubtitle/SentenceParse.cs b/LearnEnglishBySubtitle/SentenceParse.cs index 66901b6..3d7656e 100644 --- a/LearnEnglishBySubtitle/SentenceParse.cs +++ b/LearnEnglishBySubtitle/SentenceParse.cs @@ -139,7 +139,7 @@ public IList> Pickup(string line) if (wordMean != null) { var originalMean= Global.DictionaryService.GetChineseMeanInDict(original); - if (!wordMean.Detail.Contains( originalMean.Detail)) + if (originalMean==null|| !wordMean.Detail.Contains( originalMean.Detail)) { //找到的原型不对 original = wordLow;