summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2013-07-04 15:46:26 -0400
committerGerrit Code Review @ Eclipse.org2013-07-05 07:11:56 -0400
commitbf84d4172d0336587513377471bb12a86eb9966e (patch)
tree39f13908ac15d27780c8fa316c63536f81675d00
parentaddfb93d76840d8773ace8f89211cc1cb00218d6 (diff)
downloadorg.eclipse.mylyn.tasks-bf84d4172d0336587513377471bb12a86eb9966e.zip
org.eclipse.mylyn.tasks-bf84d4172d0336587513377471bb12a86eb9966e.tar.gz
org.eclipse.mylyn.tasks-bf84d4172d0336587513377471bb12a86eb9966e.tar.xz
412343: NPE Display last commented date at top of task editor
Change-Id: Id20b590996dc4e0f7618c5cfdbabe764dab55e7c Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=412343
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorFactory.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorFactory.java
index 88e4b83..e756cd5 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorFactory.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorFactory.java
@@ -13,9 +13,9 @@ package org.eclipse.mylyn.tasks.ui.editors;
import org.eclipse.core.runtime.Assert;
import org.eclipse.mylyn.internal.tasks.ui.editors.BooleanAttributeEditor;
-import org.eclipse.mylyn.internal.tasks.ui.editors.LastCommentedAttributeEditor;
import org.eclipse.mylyn.internal.tasks.ui.editors.DateAttributeEditor;
import org.eclipse.mylyn.internal.tasks.ui.editors.DoubleAttributeEditor;
+import org.eclipse.mylyn.internal.tasks.ui.editors.LastCommentedAttributeEditor;
import org.eclipse.mylyn.internal.tasks.ui.editors.LongTextAttributeEditor;
import org.eclipse.mylyn.internal.tasks.ui.editors.MultiSelectionAttributeEditor;
import org.eclipse.mylyn.internal.tasks.ui.editors.PersonAttributeEditor;
@@ -85,7 +85,7 @@ public class AttributeEditorFactory {
return new DateAttributeEditor(model, taskAttribute);
} else if (TaskAttribute.TYPE_DATETIME.equals(type)) {
if (taskAttribute.getParentAttribute() != null
- && taskAttribute.getParentAttribute().getMetaData().getType().equals(TaskAttribute.TYPE_COMMENT)) {
+ && TaskAttribute.TYPE_COMMENT.equals(taskAttribute.getParentAttribute().getMetaData().getType())) {
LastCommentedAttributeEditor editor = new LastCommentedAttributeEditor(model, taskAttribute);
return editor;
}