mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 15:29:38 +01:00
Fix nullpointer
This commit is contained in:
parent
19e0763ff5
commit
a86add2d9b
1 changed files with 4 additions and 4 deletions
|
@ -154,13 +154,13 @@ public class InfoDisplay extends Parent {
|
||||||
|
|
||||||
public void setText(String text) {
|
public void setText(String text) {
|
||||||
this.text.set(text);
|
this.text.set(text);
|
||||||
if (getScene() != null) {
|
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
|
if (getScene() != null) {
|
||||||
label.setVisible(true);
|
label.setVisible(true);
|
||||||
label.prefWidthProperty().unbind();
|
label.prefWidthProperty().unbind();
|
||||||
label.setPrefWidth(getScene().getWindow().getWidth() - localToScene(0, 0).getX() - 35);
|
label.setPrefWidth(getScene().getWindow().getWidth() - localToScene(0, 0).getX() - 35);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setGridPane(GridPane gridPane) {
|
public void setGridPane(GridPane gridPane) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue