mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ui: NPE in UnscrambleDialog.getPreferredFocusedComponent()
This commit is contained in:
@@ -208,7 +208,8 @@ public class UnscrambleDialog extends DialogWrapper {
|
||||
}
|
||||
|
||||
public JComponent getPreferredFocusedComponent() {
|
||||
return getRootPane().getDefaultButton();
|
||||
JRootPane pane = getRootPane();
|
||||
return pane != null ? pane.getDefaultButton() : super.getPreferredFocusedComponent();
|
||||
}
|
||||
|
||||
private void createLogFileChooser() {
|
||||
|
||||
Reference in New Issue
Block a user