1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 17:55:39 +02:00

Fix for 196913, exception when closing and opening OutlineView.

This commit is contained in:
Markus Schorn 2007-07-18 08:25:17 +00:00
parent 0766a89161
commit 5c594b778c

View file

@ -358,6 +358,7 @@ public class CContentOutlinePage extends Page implements IContentOutlinePage, IS
public void dispose() {
if (fTreeViewer != null) {
fTreeViewer.removeSelectionChangedListener(this);
fTreeViewer= null;
}
if (fTogglePresentation != null) {
@ -392,7 +393,7 @@ public class CContentOutlinePage extends Page implements IContentOutlinePage, IS
if (selectionChangedListeners != null) {
selectionChangedListeners.clear();
selectionChangedListeners= null;
// don't set the listeners to null, the outline page may be reused.
}
if (fMenu != null && !fMenu.isDisposed()) {