Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2006-10-17 23:54:55 +0000
committerrelves2006-10-17 23:54:55 +0000
commit86feeb3272f086f8d18f003cd126e246391507eb (patch)
treefc1432baf9135794cd13e81790eb162d8358096c /org.eclipse.mylyn.bugzilla.core
parent37141573c91dfe885bee8c0e89504a6df2c1931b (diff)
downloadorg.eclipse.mylyn.tasks-86feeb3272f086f8d18f003cd126e246391507eb.tar.gz
org.eclipse.mylyn.tasks-86feeb3272f086f8d18f003cd126e246391507eb.tar.xz
org.eclipse.mylyn.tasks-86feeb3272f086f8d18f003cd126e246391507eb.zip
NEW - bug 154729: Bugzilla pane is empty when retrieving a task from Bugzilla using SSH/Tunneling
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/AbstractReportFactory.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/AbstractReportFactory.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/AbstractReportFactory.java
index 70ea6a5c8..058f528ca 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/AbstractReportFactory.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/AbstractReportFactory.java
@@ -52,8 +52,10 @@ public class AbstractReportFactory {
protected void collectResults(URL url, Proxy proxySettings, String characterEncoding,
DefaultHandler contentHandler, boolean clean) throws IOException, BugzillaException, GeneralSecurityException {
- HttpURLConnection connection = WebClientUtil.openUrlConnection(url, proxySettings, false);
+ HttpURLConnection connection = null;
try {
+ connection = WebClientUtil.openUrlConnection(url, proxySettings, false);
+
int responseCode = connection.getResponseCode();
if (responseCode != HttpURLConnection.HTTP_OK) {
String msg;

Back to the top