mirror of
https://github.com/correl/mage.git
synced 2025-03-12 17:00:08 -09:00
Prevent NPE after disconnect for open tournament panel.
This commit is contained in:
parent
15b08c110e
commit
357e80c7c2
1 changed files with 3 additions and 0 deletions
|
@ -192,6 +192,9 @@ public class TournamentPanel extends javax.swing.JPanel {
|
|||
}
|
||||
|
||||
public void update(TournamentView tournament) {
|
||||
if (tournament == null) {
|
||||
return;
|
||||
}
|
||||
if (!firstInitDone) {
|
||||
Component c = this.getParent();
|
||||
while (c != null && !(c instanceof TournamentPane)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue