[release/3.6] 修复 backgroundType 为 null 时启动器崩溃的问题 (#4438)

https://github.com/HMCL-dev/HMCL/pull/4437
This commit is contained in:
Glavo 2025-09-10 22:58:18 +08:00 committed by GitHub
parent 1654c652e0
commit 6dd7d53c20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -198,6 +198,8 @@ public class DecoratorController {
private Background getBackground() {
EnumBackgroundImage imageType = config().getBackgroundImageType();
if (imageType == null)
imageType = EnumBackgroundImage.DEFAULT;
Image image = null;
switch (imageType) {