Skip to content

Commit

Permalink
fix null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
xzxADIxzx committed Jan 3, 2024
1 parent f24a1b6 commit 864a613
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/java/scheme/ui/HudFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,11 @@ private void setItem(Table table, Item item) {

private void updateBlocks() {
app.post(() -> { // waiting for blockfrag rebuild
block[0] = ui.hudGroup.find("inputTable").parent.parent.parent;
block[0] = ui.hudGroup.find("inputTable");
block[1] = ui.hudGroup.find("statustable");
block[2] = ui.hudGroup.find("editor");

if (block[0] != null) block[0] = block[0].parent.parent.parent;
});
}

Expand Down

0 comments on commit 864a613

Please sign in to comment.