mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 07:15:54 -04:00
Fix nullpointer
This commit is contained in:
parent
19e0763ff5
commit
a86add2d9b
@ -154,13 +154,13 @@ public class InfoDisplay extends Parent {
|
||||
|
||||
public void setText(String text) {
|
||||
this.text.set(text);
|
||||
if (getScene() != null) {
|
||||
Platform.runLater(() -> {
|
||||
Platform.runLater(() -> {
|
||||
if (getScene() != null) {
|
||||
label.setVisible(true);
|
||||
label.prefWidthProperty().unbind();
|
||||
label.setPrefWidth(getScene().getWindow().getWidth() - localToScene(0, 0).getX() - 35);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void setGridPane(GridPane gridPane) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user