From 3fbe199aab995976f4901e2958bd518805e31031 Mon Sep 17 00:00:00 2001 From: Glavo Date: Wed, 10 Sep 2025 22:50:39 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20#4435:=20=E4=BF=AE=E5=A4=8D=20backgroundT?= =?UTF-8?q?ype=20=E4=B8=BA=20null=20=E6=97=B6=E5=90=AF=E5=8A=A8=E5=99=A8?= =?UTF-8?q?=E5=B4=A9=E6=BA=83=E7=9A=84=E9=97=AE=E9=A2=98=20(#4437)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jackhuang/hmcl/ui/decorator/DecoratorController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java index 523b4657c..fd06fd2f9 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java @@ -217,6 +217,8 @@ public class DecoratorController { private Background getBackground() { EnumBackgroundImage imageType = config().getBackgroundImageType(); + if (imageType == null) + imageType = EnumBackgroundImage.DEFAULT; Image image = null; switch (imageType) {