mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE (can be set to null once disposed)
This commit is contained in:
+2
-1
@@ -247,7 +247,8 @@ public class SingleConfigurableEditor extends DialogWrapper {
|
||||
|
||||
@Override
|
||||
public JComponent getPreferredFocusedComponent() {
|
||||
JComponent preferred = myConfigurable.getPreferredFocusedComponent();
|
||||
Configurable configurable = myConfigurable;
|
||||
JComponent preferred = configurable == null ? null : configurable.getPreferredFocusedComponent();
|
||||
return preferred == null ? IdeFocusTraversalPolicy.getPreferredFocusedComponent(myCenterPanel) : preferred;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user