修复自定义背景图片路径包含无效字符时启动器崩溃的问题 (#3817)
This commit is contained in:
@@ -203,7 +203,11 @@ public class DecoratorController {
|
|||||||
case CUSTOM:
|
case CUSTOM:
|
||||||
String backgroundImage = config().getBackgroundImage();
|
String backgroundImage = config().getBackgroundImage();
|
||||||
if (backgroundImage != null)
|
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;
|
break;
|
||||||
case NETWORK:
|
case NETWORK:
|
||||||
String backgroundImageUrl = config().getBackgroundImageUrl();
|
String backgroundImageUrl = config().getBackgroundImageUrl();
|
||||||
|
|||||||
Reference in New Issue
Block a user