mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-12-22 16:38:04 +01:00
Added null check to closePopup method
This commit is contained in:
parent
4b30f6c512
commit
b9e4b6cb75
@ -218,11 +218,13 @@ public class AccountsTab extends AUITab {
|
|||||||
if (!model.isEmpty()) this.markSelected(0);
|
if (!model.isEmpty()) this.markSelected(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void closePopup() {
|
private void closePopup() { // Might be getting called multiple times
|
||||||
this.addAccountPopup.markExternalClose();
|
if (this.addAccountPopup != null) {
|
||||||
this.addAccountPopup.setVisible(false);
|
this.addAccountPopup.markExternalClose();
|
||||||
this.addAccountPopup.dispose();
|
this.addAccountPopup.setVisible(false);
|
||||||
this.addAccountPopup = null;
|
this.addAccountPopup.dispose();
|
||||||
|
this.addAccountPopup = null;
|
||||||
|
}
|
||||||
this.addMicrosoftAccountButton.setEnabled(true);
|
this.addMicrosoftAccountButton.setEnabled(true);
|
||||||
this.addBedrockAccountButton.setEnabled(true);
|
this.addBedrockAccountButton.setEnabled(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user