houbb / sensitive-word

👮‍♂️The sensitive word tool for java.(敏感词/违禁词/违法词/脏词。基于 DFA 算法实现的高性能 java 敏感词过滤工具框架。请勿发布涉及政治、广告、营销、翻墙、违反国家法律法规等内容。高性能敏感词检测过滤组件,附带繁体简体互换,支持全角半角互换,汉字转拼音,模糊搜索等功能。)
https://houbb.github.io/opensource/sensitive-word
Apache License 2.0
4.36k stars 589 forks source link

Bean创建失败,报错Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Collection.toArray()" because "c" is null #72

Closed NBHZW closed 2 months ago

NBHZW commented 2 months ago

这是报错 image 这是config配置类 @Configuration public class SpringSensitiveWordConfig { @Resource private WordDeny wordDeny; /**初始化引导类

hangker1997 commented 2 months ago

黑名单那个接口,return null 改一下 改成 rerurn new ArrayList<>();

houbb commented 2 months ago

v0.18.1 已兼容 null 场景。