From: <bri...@us...> - 2019-05-16 12:35:15
|
Revision: 10714 http://sourceforge.net/p/omegat/svn/10714 Author: briac_pilpre Date: 2019-05-16 12:35:08 +0000 (Thu, 16 May 2019) Log Message: ----------- Avoid NullPointerException if the Spellchecker was not created before project close. Modified Paths: -------------- trunk/src/org/omegat/core/spellchecker/SpellChecker.java Modified: trunk/src/org/omegat/core/spellchecker/SpellChecker.java =================================================================== --- trunk/src/org/omegat/core/spellchecker/SpellChecker.java 2019-05-14 21:20:09 UTC (rev 10713) +++ trunk/src/org/omegat/core/spellchecker/SpellChecker.java 2019-05-16 12:35:08 UTC (rev 10714) @@ -297,8 +297,10 @@ */ public void destroy() { saveWordLists(); - checker.destroy(); - checker = null; + if (checker != null) { + checker.destroy(); + checker = null; + } } protected void resetCache() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |