Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2006-11-30 21:42:40 -0500
committerspingel2006-11-30 21:42:40 -0500
commit2344d3ee834c22df93ad5a98e4a60788fb7833f6 (patch)
tree16ed7ed89b179b13ef1b185340f309675754e70f /org.eclipse.mylyn.trac.core/src
parent5a87f32bba8eacc6492864453835152e0495bd3a (diff)
downloadorg.eclipse.mylyn.tasks-2344d3ee834c22df93ad5a98e4a60788fb7833f6.tar.gz
org.eclipse.mylyn.tasks-2344d3ee834c22df93ad5a98e4a60788fb7833f6.tar.xz
org.eclipse.mylyn.tasks-2344d3ee834c22df93ad5a98e4a60788fb7833f6.zip
NEW - bug 165857: Error: "java.lang.NullPointerException" in org.eclipse.ui
https://bugs.eclipse.org/bugs/show_bug.cgi?id=165857
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracAttachmentHandler.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracAttachmentHandler.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracAttachmentHandler.java
index 7fc0f8228..17fac795d 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracAttachmentHandler.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracAttachmentHandler.java
@@ -99,10 +99,16 @@ public class TracAttachmentHandler implements IAttachmentHandler {
}
public boolean canDownloadAttachment(TaskRepository repository, AbstractRepositoryTask task) {
+ if (repository == null) {
+ return false;
+ }
return TracRepositoryConnector.hasAttachmentSupport(repository, task);
}
public boolean canUploadAttachment(TaskRepository repository, AbstractRepositoryTask task) {
+ if (repository == null) {
+ return false;
+ }
return TracRepositoryConnector.hasAttachmentSupport(repository, task);
}

Back to the top