Skip to content

Commit

Permalink
Fixed Module Settings throwing error in the case that C is somehow null.
Browse files Browse the repository at this point in the history
  • Loading branch information
coltonk9043 committed Dec 20, 2023
1 parent 5a2db84 commit fbd1df0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/java/net/aoba/gui/tabs/ModuleSettingsTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ public ModuleSettingsTab(String title, float x, float y, Module module) {
} else {
c = null;
}

c.setTop(i);
children.add(c);
i += c.getHeight();

if(c != null) {
c.setTop(i);
children.add(c);
i += c.getHeight();
}
}

this.setHeight(i - 30);
}

Expand Down

0 comments on commit fbd1df0

Please sign in to comment.