summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-03-09 04:18:45 (EST)
committer Steffen Pingel2012-03-09 04:18:45 (EST)
commitc634e483d49a17f9642c3a1ab6941283d6da9bed (patch)
tree33b9633085b4d68cd78af8f7bdc51718147e27ce
parent7ede1692cf3f548b268f16b86ee6c17eb16d76ac (diff)
downloadorg.eclipse.mylyn.tasks-c634e483d49a17f9642c3a1ab6941283d6da9bed.zip
org.eclipse.mylyn.tasks-c634e483d49a17f9642c3a1ab6941283d6da9bed.tar.gz
org.eclipse.mylyn.tasks-c634e483d49a17f9642c3a1ab6941283d6da9bed.tar.bz2
NEW - bug 372663: NPE in TaskEditorOutlinePage
https://bugs.eclipse.org/bugs/show_bug.cgi?id=372663 Change-Id: I192f3b6d49a3cb78a74b02f5da2ff2d88841fce0
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlinePage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlinePage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlinePage.java
index f488db3..0f5bf78 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlinePage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlinePage.java
@@ -37,7 +37,7 @@ public class TaskEditorOutlinePage extends ContentOutlinePage {
} else {
this.model = null;
}
- if (viewer != null) {
+ if (viewer != null && viewer.getControl() != null && !viewer.getControl().isDisposed()) {
viewer.setInput(this.model);
viewer.expandAll();
viewer.refresh(true);