Permalink
Browse files

StringAnalyzer: fix NRE if hunspell was not enabled

  • Loading branch information...
1 parent 96b6ba8 commit e8b56ca28a0c0a14d0b17ce2ac27f48262135bc6 @abock abock committed May 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Vernacular.Analyzers/StringAnalyzer.cs
@@ -213,7 +213,7 @@ private bool CheckTags (string value)
private bool CheckSpelling (string value)
{
- if (String.IsNullOrWhiteSpace (value)) {
+ if (hunspell == null || String.IsNullOrWhiteSpace (value)) {
return false;
}
@@ -234,4 +234,4 @@ private bool CheckSpelling (string value)
return false;
}
}
-}
+}

0 comments on commit e8b56ca

Please sign in to comment.