Prevent NPE after disconnect for open tournament panel.

This commit is contained in:
LevelX2 2014-08-13 22:01:06 +02:00
parent 15b08c110e
commit 357e80c7c2

View file

@ -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)) {