summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-03-07 05:22:30 (EST)
committerSteffen Pingel2012-03-07 05:22:30 (EST)
commitd1c4bb72f68e687512ae951e66b5b12d52830b15 (patch)
treed598b75ba89c5a41f866342f34a12e2d8fa8921b
parent480ad5472a8e5c59d56fa4a854523d07c523d34e (diff)
downloadorg.eclipse.mylyn.tasks-d1c4bb72f68e687512ae951e66b5b12d52830b15.zip
org.eclipse.mylyn.tasks-d1c4bb72f68e687512ae951e66b5b12d52830b15.tar.gz
org.eclipse.mylyn.tasks-d1c4bb72f68e687512ae951e66b5b12d52830b15.tar.bz2
NEW - bug 373197: Null Pointer exception when focusin on a bug in the
editor https://bugs.eclipse.org/bugs/show_bug.cgi?id=373197 Change-Id: I458bbcc9745954b2ae2a81db13e437e3321dff2f
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorSummaryPart.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorSummaryPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorSummaryPart.java
index 83cd50c..710e12f 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorSummaryPart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorSummaryPart.java
@@ -284,7 +284,7 @@ public class TaskEditorSummaryPart extends AbstractTaskEditorPart {
@Override
public void setFocus() {
- if (summaryEditor != null) {
+ if (summaryEditor != null && summaryEditor.getControl() != null) {
summaryEditor.getControl().setFocus();
}
}