Commit 11c5a25
NPE in SmartTypingConfigurationBlock when no Java editor is active
The Typing preference page threw an NPE when opened with no active Java
editor, since a null compilation unit was dereferenced without a check;
this adds the missing null guard, consistent with the existing null-safe
handling right below it.
Fix: #30681 parent 44d377a commit 11c5a25
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
0 commit comments