Skip to content

Commit dc31511

Browse files
committed
fix NPE in Settings.tick with null container
fixes crash when opening settings for modules without settings
1 parent f60126d commit dc31511

File tree

1 file changed

+2
-0
lines changed
  • src/main/java/meteordevelopment/meteorclient/settings

1 file changed

+2
-0
lines changed

src/main/java/meteordevelopment/meteorclient/settings/Settings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ else if (setting instanceof ColorListSetting) {
128128
}
129129

130130
public void tick(WContainer settings, GuiTheme theme) {
131+
if (settings == null) return;
132+
131133
for (SettingGroup group : groups) {
132134
for (Setting<?> setting : group) {
133135
boolean visible = setting.isVisible();

0 commit comments

Comments
 (0)