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:
parent
0766a89161
commit
5c594b778c
1 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue