修复自定义背景图片路径包含无效字符时启动器崩溃的问题 (#3817)

This commit is contained in:
Glavo 2025-04-12 17:51:28 +08:00 committed by GitHub
parent 87c2126e5a
commit 88e83dc44a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -203,7 +203,11 @@ public class DecoratorController {
case CUSTOM:
String backgroundImage = config().getBackgroundImage();
if (backgroundImage != null)
image = tryLoadImage(Paths.get(backgroundImage));
try {
image = tryLoadImage(Paths.get(backgroundImage));
} catch (Exception e) {
LOG.warning("Couldn't load background image", e);
}
break;
case NETWORK:
String backgroundImageUrl = config().getBackgroundImageUrl();