selectedBuilder must not be null

This commit is contained in:
Reinhard Pointner 2016-10-20 10:30:15 +08:00
parent 43572de117
commit d41dd97655
1 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,9 @@ public class MainFrame extends JFrame {
}
private void showPanel(PanelBuilder selectedBuilder) {
if (selectedBuilder == null)
return;
JComponent contentPane = (JComponent) getContentPane();
JComponent selectedPanel = null;