Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-03-01 22:13:49 +0000
committerSteffen Pingel2012-03-01 22:13:49 +0000
commit70fc9b6089fc46c90e30b355a9bfa53c942e6178 (patch)
treefacf749b68fa0af58053b99c0f963d5a1ae3b4d5
parent11c3d35e5a656cd4140208b9c3a28386ab71b21c (diff)
downloadorg.eclipse.mylyn.tasks-70fc9b6089fc46c90e30b355a9bfa53c942e6178.tar.gz
org.eclipse.mylyn.tasks-70fc9b6089fc46c90e30b355a9bfa53c942e6178.tar.xz
org.eclipse.mylyn.tasks-70fc9b6089fc46c90e30b355a9bfa53c942e6178.zip
NEW - bug 369417: NullPointerException in
TaskEditorActionPart.refreshOperation() https://bugs.eclipse.org/bugs/show_bug.cgi?id=369417
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java
index ebf953250..cc1c27504 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java
@@ -465,12 +465,14 @@ public class TaskEditorActionPart extends AbstractTaskEditorPart {
* @since 3.5
*/
public void refreshOperations() {
- for (Button button : operationButtons) {
- TaskOperation taskOperation = (TaskOperation) button.getData(KEY_OPERATION);
- button.setEnabled(!taskOperation.getTaskAttribute().getMetaData().isDisabled());
- button.setToolTipText(taskOperation.getTaskAttribute()
- .getMetaData()
- .getValue(TaskAttribute.META_DESCRIPTION));
+ if (operationButtons != null) {
+ for (Button button : operationButtons) {
+ TaskOperation taskOperation = (TaskOperation) button.getData(KEY_OPERATION);
+ button.setEnabled(!taskOperation.getTaskAttribute().getMetaData().isDisabled());
+ button.setToolTipText(taskOperation.getTaskAttribute()
+ .getMetaData()
+ .getValue(TaskAttribute.META_DESCRIPTION));
+ }
}
}
}

Back to the top