Skip to content

Fix: NullPointerException when antiswear is disabled#6

Open
KikyoC wants to merge 1 commit into
ItzSave:masterfrom
KikyoC:master
Open

Fix: NullPointerException when antiswear is disabled#6
KikyoC wants to merge 1 commit into
ItzSave:masterfrom
KikyoC:master

Conversation

@KikyoC

@KikyoC KikyoC commented Nov 27, 2025

Copy link
Copy Markdown

Hey,
i had an issue with anti swear disabled. It make the blockedWords variable as null and the code tried to iterate on it.
I has been fixed in this PR

2 lines edited.
Thank you for taking time to read this and have a nice day !

@KikyoC

KikyoC commented Nov 27, 2025

Copy link
Copy Markdown
Author
anti_swear:
  # Should the anti-swear feature be enabled?
  enabled: false

  # List of words that will be blocked
  blocked_words:
    - very
    - bad
    - words

This is the part of the config that cause this crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant