Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 99dca93

Browse files
author
Alex Johnson
committed
BUGFIX - Remove buttonOk and buttonCancel references in ReindexDialog to prevent java.lang.NullPointerException
1 parent f1e66e6 commit 99dca93

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

‎src/main/java/com/magento/idea/magento2uct/ui/ReindexDialog.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import com.magento.idea.magento2uct.packages.IndexRegistry;
1717
import com.magento.idea.magento2uct.packages.SupportedVersion;
1818
import java.awt.event.KeyEvent;
19-
import javax.swing.JButton;
2019
import javax.swing.JComboBox;
2120
import javax.swing.JComponent;
2221
import javax.swing.JLabel;
@@ -32,15 +31,13 @@ public class ReindexDialog extends AbstractDialog {
3231
private JPanel contentPanel;
3332
private JComboBox<ComboBoxItemData> targetVersion;
3433
private JComboBox<ComboBoxItemData> targetIndex;
35-
private JButton buttonOk;
36-
private JButton buttonCancel;
3734
private JLabel targetVersionLabel;//NOPMD
3835
private JLabel targetIndexLabel;//NOPMD
3936

4037
/**
4138
* Reindexing dialog.
4239
*
43-
* @param project Project
40+
* @param project Project
4441
* @param directory PsiDirectory
4542
*/
4643
public ReindexDialog(
@@ -54,9 +51,6 @@ public ReindexDialog(
5451

5552
setTitle(ReindexVersionedIndexesAction.ACTION_NAME);
5653

57-
buttonOk.addActionListener(event -> onOK());
58-
buttonCancel.addActionListener(event -> onCancel());
59-
6054
// call onCancel() on ESCAPE
6155
contentPanel.registerKeyboardAction(
6256
event -> onCancel(),
@@ -70,7 +64,7 @@ public ReindexDialog(
7064
/**
7165
* Open reindexing dialog window.
7266
*
73-
* @param project Project
67+
* @param project Project
7468
* @param directory PsiDirectory
7569
*/
7670
public static void open(

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /