forked from External/mage
Fix for splash screen being null (NullPointerException).
This commit is contained in:
parent
3ca748e16d
commit
791ce58b23
1 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue