Skip to content

Commit c5b9705

Browse files
author
Alex Johnson
committed
BUGFIX - Remove buttonOk and buttonCancel references in ConfigurationDialog to prevent java.lang.NullPointerException
1 parent a7cfcbf commit c5b9705

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/java/com/magento/idea/magento2uct/ui/ConfigurationDialog.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import java.awt.Color;
2626
import java.awt.event.KeyEvent;
2727
import java.util.Objects;
28-
import javax.swing.JButton;
2928
import javax.swing.JCheckBox;
3029
import javax.swing.JComboBox;
3130
import javax.swing.JComponent;
@@ -50,8 +49,6 @@ public class ConfigurationDialog extends AbstractDialog {
5049
private JComboBox<ComboBoxItemData> issueSeverityLevel;
5150

5251
private JPanel contentPanel;
53-
private JButton buttonCancel;
54-
private JButton buttonOk;
5552
private JLabel currentVersionLabel;//NOPMD
5653
private JLabel modulePathLabel;//NOPMD
5754
private JLabel targetVersionLabel;//NOPMD
@@ -77,8 +74,6 @@ public ConfigurationDialog(final @NotNull Project project) {
7774

7875
hasAdditionalPath.addActionListener(event ->
7976
refreshAdditionalFields(hasAdditionalPath.isSelected()));
80-
buttonOk.addActionListener(event -> onOK());
81-
buttonCancel.addActionListener(event -> onCancel());
8277

8378
// call onCancel() on ESCAPE
8479
contentPanel.registerKeyboardAction(

0 commit comments

Comments
 (0)