Fixed a minor glitch in tree view.
diff --git a/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.core/src/org/eclipse/amp/agf/tree/TreeViewPart.java b/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.core/src/org/eclipse/amp/agf/tree/TreeViewPart.java
index 4eec6c8..2e41bc4 100644
--- a/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.core/src/org/eclipse/amp/agf/tree/TreeViewPart.java
+++ b/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.core/src/org/eclipse/amp/agf/tree/TreeViewPart.java
@@ -104,7 +104,7 @@
      */
     protected void modelChanged(final IModel activeModel) {
         setModel(activeModel);
-        if (getViewer().getControl() != null) {
+        if (getViewer().getControl() != null && !getViewer().getControl().isDisposed()) {
             if (activeModel != null) {
                 ModelFactoryProvider provider = getModelFactoryProvider(activeModel);
                 EditPartFactory editPartTreeFactory = provider.getEditPartTreeFactory();