diff options
author | Steffen Pingel | 2012-01-16 18:41:39 +0000 |
---|---|---|
committer | Steffen Pingel | 2012-01-16 18:41:39 +0000 |
commit | e2fd4474dc680d6112fb10776baa1a8cd63ff70a (patch) | |
tree | d02ebbfde1b387f40dd194d8d575cd62b3db802d | |
parent | fc426f67230e6cee46acec5d6f363a170498ade1 (diff) | |
download | org.eclipse.mylyn.tasks-e2fd4474dc680d6112fb10776baa1a8cd63ff70a.tar.gz org.eclipse.mylyn.tasks-e2fd4474dc680d6112fb10776baa1a8cd63ff70a.tar.xz org.eclipse.mylyn.tasks-e2fd4474dc680d6112fb10776baa1a8cd63ff70a.zip |
NEW - bug 364509: NPE retrieving context when attachment creation date
is null
https://bugs.eclipse.org/bugs/show_bug.cgi?id=364509
-rw-r--r-- | org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/context/ContextRetrieveWizardPage.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/context/ContextRetrieveWizardPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/context/ContextRetrieveWizardPage.java index d343c2f00..535be4748 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/context/ContextRetrieveWizardPage.java +++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/context/ContextRetrieveWizardPage.java @@ -12,6 +12,7 @@ package org.eclipse.mylyn.internal.tasks.ui.context; import java.util.Collections; +import java.util.Date; import java.util.List; import org.eclipse.jface.dialogs.Dialog; @@ -119,7 +120,10 @@ public class ContextRetrieveWizardPage extends WizardPage { for (ITaskAttachment attachment : contextAttachments) { TableItem item = new TableItem(contextTable, SWT.NONE); - item.setText(0, DateFormat.getInstance().format(attachment.getCreationDate())); + Date creationDate = attachment.getCreationDate(); + if (creationDate != null) { + item.setText(0, DateFormat.getInstance().format(creationDate)); + } IRepositoryPerson author = attachment.getAuthor(); if (author != null) { item.setText(1, author.toString()); |