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);
|
||||
}
|
||||
|
||||
private void closePopup() {
|
||||
this.addAccountPopup.markExternalClose();
|
||||
this.addAccountPopup.setVisible(false);
|
||||
this.addAccountPopup.dispose();
|
||||
this.addAccountPopup = null;
|
||||
private void closePopup() { // Might be getting called multiple times
|
||||
if (this.addAccountPopup != null) {
|
||||
this.addAccountPopup.markExternalClose();
|
||||
this.addAccountPopup.setVisible(false);
|
||||
this.addAccountPopup.dispose();
|
||||
this.addAccountPopup = null;
|
||||
}
|
||||
this.addMicrosoftAccountButton.setEnabled(true);
|
||||
this.addBedrockAccountButton.setEnabled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user