Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2011-10-13 18:12:39 +0000
committerSteffen Pingel2011-10-13 18:12:39 +0000
commit1ef213165785140d8327aacbe8968584841536e7 (patch)
tree49a38aa3df1b25a9fbd5b5558ab1f2fe58b0c515 /org.eclipse.mylyn.tasks.ui
parent70aa1995433879e19c0510c506f4ed3d12dcf41b (diff)
downloadorg.eclipse.mylyn.tasks-1ef213165785140d8327aacbe8968584841536e7.tar.gz
org.eclipse.mylyn.tasks-1ef213165785140d8327aacbe8968584841536e7.tar.xz
org.eclipse.mylyn.tasks-1ef213165785140d8327aacbe8968584841536e7.zip
NEW - bug 360743: NPE in TaskEditorSummaryPart when there is no Summary
attribute https://bugs.eclipse.org/bugs/show_bug.cgi?id=360743
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorSummaryPart.java6
1 files changed, 3 insertions, 3 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 44567d4a1..47aef49f8 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
@@ -126,10 +126,10 @@ public class TaskEditorSummaryPart extends AbstractTaskEditorPart {
private void addSummaryText(Composite composite, final FormToolkit toolkit) {
TaskAttribute summaryAttrib = getTaskData().getRoot().getMappedAttribute(TaskAttribute.SUMMARY);
summaryEditor = createAttributeEditor(summaryAttrib);
- if (summaryAttrib.getMetaData().isReadOnly()) {
- summaryEditor.setReadOnly(true);
- }
if (summaryEditor != null) {
+ if (summaryAttrib.getMetaData().isReadOnly()) {
+ summaryEditor.setReadOnly(true);
+ }
if (summaryEditor instanceof RichTextAttributeEditor) {
// create composite to hold rounded border
Composite roundedBorder = EditorUtil.createBorder(composite, toolkit, !summaryEditor.isReadOnly());

Back to the top