Fix for splash screen being null (NullPointerException).

This commit is contained in:
magenoxx 2010-11-30 08:13:56 +00:00
parent 3ca748e16d
commit 791ce58b23

View file

@ -63,9 +63,9 @@ import javax.swing.JLabel;
import javax.swing.JLayeredPane;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JToolBar.Separator;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.JToolBar.Separator;
import mage.cards.Card;
import mage.cards.ExpansionSet;
@ -519,7 +519,9 @@ public class MageFrame extends javax.swing.JFrame {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
new MageFrame().setVisible(true);
splash.close();
if (splash != null) {
splash.close();
}
}
});
}