1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-08 00:35:49 +02:00

fix NPE when editor closes

This commit is contained in:
David Inglis 2002-10-01 01:19:32 +00:00
parent ff7d4412e4
commit 75201f7a47

View file

@ -1366,7 +1366,10 @@ public class CEditor extends AbstractTextEditor implements ISelectionChangedList
* Uninstalls this manager. * Uninstalls this manager.
*/ */
private void uninstall() { private void uninstall() {
getTextWidget().removeVerifyKeyListener(this); StyledText textWidget = getTextWidget();
if (textWidget != null && !textWidget.isDisposed()) {
textWidget.removeVerifyKeyListener(this);
}
} }
}; };