Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-02-15 14:38:48 -0500
committerrelves2007-02-15 14:38:48 -0500
commit6ff194c259d5da4d326db2c94e7020e4488843eb (patch)
tree18cc4d00e710a5858d34f1b4a828910c02f8f010
parent8ccec937aded8fe59476c00f8afdb139203c1a06 (diff)
downloadorg.eclipse.mylyn.tasks-6ff194c259d5da4d326db2c94e7020e4488843eb.tar.gz
org.eclipse.mylyn.tasks-6ff194c259d5da4d326db2c94e7020e4488843eb.tar.xz
org.eclipse.mylyn.tasks-6ff194c259d5da4d326db2c94e7020e4488843eb.zip
NEW - bug 173320: NPE on submit of Bugzilla task with attachments
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173320
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
index de3e9dbea..0856dacfc 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
@@ -1212,8 +1212,14 @@ public abstract class AbstractRepositoryTaskEditor extends TaskFormPage {
*/
attachmentsTableViewer.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent e) {
+
+ if(e.getSelection().isEmpty()) {
+ return;
+ }
+
RepositoryAttachment att = (RepositoryAttachment) (((StructuredSelection) e.getSelection())
.getFirstElement());
+
popupMenu.removeAll();
popupMenu.add(openMenu);
openMenu.removeAll();

Back to the top