mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-07 16:26:11 +02:00
fix NPE when editor closes
This commit is contained in:
parent
ff7d4412e4
commit
75201f7a47
1 changed files with 4 additions and 1 deletions
|
@ -1366,7 +1366,10 @@ public class CEditor extends AbstractTextEditor implements ISelectionChangedList
|
|||
* Uninstalls this manager.
|
||||
*/
|
||||
private void uninstall() {
|
||||
getTextWidget().removeVerifyKeyListener(this);
|
||||
StyledText textWidget = getTextWidget();
|
||||
if (textWidget != null && !textWidget.isDisposed()) {
|
||||
textWidget.removeVerifyKeyListener(this);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue