Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
2b3eef98
Unverified
Commit
2b3eef98
authored
7 years ago
by
Vladimir Krivosheev
Browse files
Options
Download
Email Patches
Plain Diff
fix NPE (can be set to null once disposed)
parent
d145aeaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/openapi/options/ex/SingleConfigurableEditor.java
+2
-1
...intellij/openapi/options/ex/SingleConfigurableEditor.java
with
2 additions
and
1 deletion
+2
-1
platform/platform-impl/src/com/intellij/openapi/options/ex/SingleConfigurableEditor.java
+
2
-
1
View file @
2b3eef98
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help