Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: null check in saveWordLists method of SpellChecker #1304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

miurahr
Copy link
Member

@miurahr miurahr commented Mar 21, 2025

Add a safeguard to prevent potential NullPointerException in the saveWordLists method by ensuring file paths are not null before proceeding. This ensures stability when saving ignored and learned words.

Pull request type

Please mark the GitHub LABEL of the change your PR introduces:

  • Bug fix -> [bug]

Which ticket is resolved?

What does this PR change?

  • Null check for the ignore words file and the learned file path on the saveWordLists method

Other information

Add a safeguard to prevent potential NullPointerException in the saveWordLists method by ensuring file paths are not null before proceeding. This ensures stability when saving ignored and learned words.
Fix BUGS#1288 Spellchecker raised NPE when writing word list file

Signed-off-by: Hiroshi Miura <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant