1
0
Fork 0
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:
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.
*/
private void uninstall() {
getTextWidget().removeVerifyKeyListener(this);
StyledText textWidget = getTextWidget();
if (textWidget != null && !textWidget.isDisposed()) {
textWidget.removeVerifyKeyListener(this);
}
}
};