mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Fix missing close handler and avoid nullPointer exception
This commit is contained in:
parent
fe646e5436
commit
e624625bbb
@ -144,7 +144,7 @@ public class ProposalDisplay {
|
||||
private VBox linkWithIconContainer, comboBoxValueContainer, myVoteBox, voteResultBox;
|
||||
private int votingBoxRowSpan;
|
||||
|
||||
private Optional<Runnable> navigateHandlerOptional;
|
||||
private Optional<Runnable> navigateHandlerOptional = Optional.empty();
|
||||
|
||||
public ProposalDisplay(GridPane gridPane,
|
||||
BsqFormatter bsqFormatter,
|
||||
@ -647,7 +647,7 @@ public class ProposalDisplay {
|
||||
}
|
||||
|
||||
public void onNavigate(Runnable navigateHandler) {
|
||||
this.navigateHandlerOptional = Optional.of(navigateHandler);
|
||||
navigateHandlerOptional = Optional.of(navigateHandler);
|
||||
}
|
||||
|
||||
public int incrementAndGetGridRow() {
|
||||
|
@ -134,6 +134,7 @@ public class ProposalResultsWindow extends TabbedOverlay<ProposalResultsWindow>
|
||||
proposalDisplay.createAllFields("", rowIndex, -Layout.FIRST_ROW_DISTANCE, proposal.getType(),
|
||||
false, "last");
|
||||
proposalDisplay.setEditable(false);
|
||||
proposalDisplay.onNavigate(this::doClose);
|
||||
|
||||
proposalDisplay.applyProposalPayload(proposal);
|
||||
proposalDisplay.applyEvaluatedProposal(evaluatedProposal);
|
||||
|
Loading…
Reference in New Issue
Block a user