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

[Bug] 非Null安全导致的误导性报错信息 #161

Open
1 task done
FCWYzzr opened this issue Jun 2, 2024 · 0 comments
Open
1 task done

[Bug] 非Null安全导致的误导性报错信息 #161

FCWYzzr opened this issue Jun 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@FCWYzzr
Copy link

FCWYzzr commented Jun 2, 2024

OS Version - 操作系统

Linux

Version Details - 版本信息

1.3.2

Describe the bug - 问题描述

如果在初始化RulesManager之前游戏崩溃,报错提示包含“由于值为null导致的Curtain.rule无法被转化为RuleManager类型”
游戏崩溃并不是Curtain的问题,但此报错信息容易误导排查者

可能的解决方案

使用Curtain.rule前判断其是否为null

To Reproduce - 复现问题

如果在初始化RulesManager之前游戏崩溃
例如在没有读写权限的上下文下启动Minecraft,同时装载了如nightconfig等读写配置文件的Mod

This issue is unique - 这个issue是唯一的

  • I have searched the issue tracker and did not find an issue describing my bug. - 我已经搜索问题追踪器并且没有发现相同的 issue。
@FCWYzzr FCWYzzr added the bug Something isn't working label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant