Skip to content

Commit 6dd7d53

Browse files
authored
[release/3.6] 修复 backgroundType 为 null 时启动器崩溃的问题 (#4438)
#4437
1 parent 1654c65 commit 6dd7d53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ public Decorator getDecorator() {
198198

199199
private Background getBackground() {
200200
EnumBackgroundImage imageType = config().getBackgroundImageType();
201+
if (imageType == null)
202+
imageType = EnumBackgroundImage.DEFAULT;
201203

202204
Image image = null;
203205
switch (imageType) {

0 commit comments

Comments
 (0)