PBH-BTN / PeerBanHelper

BT 反吸血工具 - 自动封禁不受欢迎、吸血和异常的 BT 客户端,并支持自定义规则。PeerId黑名单/UserAgent黑名单/IP CIDR/假进度/超量下载/进度回退/多播追猎/连锁封禁/伪装检测 支持 qBittorrent/Transmission/Deluge/BiglyBT/Vuze(Azureus)/BitComet
GNU General Public License v3.0
1.51k stars 36 forks source link

从不支持 BTN 的旧版本直接升级镜像到最新版本会因为配置文件中缺少 BTN 相关配置而启动失败 #117

Closed dousha closed 3 months ago

dousha commented 4 months ago
Stacktrace ```text Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection.getBoolean(String)" because "section" is null at com.ghostchu.peerbanhelper.Main.main(Main.java:98) Caused by: java.lang.NullPointerException: Cannot invoke "org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection.getBoolean(String)" because "section" is null at com.ghostchu.peerbanhelper.btn.BtnNetwork.(BtnNetwork.java:45) at com.ghostchu.peerbanhelper.PeerBanHelperServer.setupBtn(PeerBanHelperServer.java:169) at com.ghostchu.peerbanhelper.PeerBanHelperServer.(PeerBanHelperServer.java:117) at com.ghostchu.peerbanhelper.Main.main(Main.java:95) ```
Ghost-chu commented 4 months ago

这已经是史前版本了,暂不考虑修复该问题。
新的版本已经支持配置文件自动升级。