mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Add null check
This commit is contained in:
parent
3c08a2739f
commit
1c14b07fa1
@ -1317,13 +1317,15 @@ public class TraderDisputeView extends ActivatableView<VBox, Void> {
|
||||
if (item != null && !empty) {
|
||||
listener = (observable, oldValue, newValue) -> {
|
||||
setText(newValue ? Res.get("support.closed") : Res.get("support.open"));
|
||||
getTableRow().setOpacity(newValue ? 0.4 : 1);
|
||||
if (getTableRow() != null)
|
||||
getTableRow().setOpacity(newValue ? 0.4 : 1);
|
||||
};
|
||||
closedProperty = item.isClosedProperty();
|
||||
closedProperty.addListener(listener);
|
||||
boolean isClosed = item.isClosed();
|
||||
setText(isClosed ? Res.get("support.closed") : Res.get("support.open"));
|
||||
getTableRow().setOpacity(isClosed ? 0.4 : 1);
|
||||
if (getTableRow() != null)
|
||||
getTableRow().setOpacity(isClosed ? 0.4 : 1);
|
||||
} else {
|
||||
if (closedProperty != null) {
|
||||
closedProperty.removeListener(listener);
|
||||
|
Loading…
Reference in New Issue
Block a user