diff options
author | syeyoung <cyoung06@naver.com> | 2023-02-24 14:40:18 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-02-24 14:40:18 +0900 |
commit | bb318751e66f123b46a6c5f06a48f9f566f7eca3 (patch) | |
tree | bd7d9a1824af629ba9ac4063b8901f38e225651e /loader | |
parent | 80138f2b62739658aa675ed3efee644821a45f3c (diff) | |
download | Skyblock-Dungeons-Guide-bb318751e66f123b46a6c5f06a48f9f566f7eca3.tar.gz Skyblock-Dungeons-Guide-bb318751e66f123b46a6c5f06a48f9f566f7eca3.tar.bz2 Skyblock-Dungeons-Guide-bb318751e66f123b46a6c5f06a48f9f566f7eca3.zip |
- show the actual error & null chk
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader')
-rw-r--r-- | loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/version/WidgetChooseBranch.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/version/WidgetChooseBranch.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/version/WidgetChooseBranch.java index a78bffc4..e5588cb3 100644 --- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/version/WidgetChooseBranch.java +++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/version/WidgetChooseBranch.java @@ -102,14 +102,14 @@ public class WidgetChooseBranch extends AnnotatedImportOnlyWidget { } } catch (Exception e) { e.printStackTrace(); - widgets.add(new Text("Remote Error", 0xFFFFFFFF, Text.TextAlign.CENTER, Text.WordBreak.WORD, 1.0, 8.0)); + widgets.add(new Text("Remote Error\n\n"+e.getClass().getName()+": "+e.getMessage(), 0xFFFFFFFF, Text.TextAlign.CENTER, Text.WordBreak.WORD, 1.0, 8.0)); } if (widgets.isEmpty()) { widgets.add(new Text("Seems Empty", 0xFFFFFFFF, Text.TextAlign.CENTER, Text.WordBreak.WORD, 1.0, 8.0)); } widgetList.setValue(widgets); - if (versionList.getValue().getDomElement().getWidget() != null) { + if (versionList.getValue() != null && versionList.getValue().getDomElement().getWidget() != null) { versionList.getValue().removeAll(); for (Widget widget : widgets) { versionList.getValue().addWidget(widget); |