Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-10-08 14:15:41 +0000
committerEike Stepper2012-10-08 14:15:41 +0000
commit5828ae866ab021edb7004891fc6a9b7b759ab062 (patch)
tree009e3fd26cae6dd06956b1a23991112c9aa70a9a /plugins/org.eclipse.net4j.http.common
parent6838d577f33854698a75cb4c3e1e05b3e0bc26fb (diff)
downloadcdo-5828ae866ab021edb7004891fc6a9b7b759ab062.tar.gz
cdo-5828ae866ab021edb7004891fc6a9b7b759ab062.tar.xz
cdo-5828ae866ab021edb7004891fc6a9b7b759ab062.zip
Fix HTTPTest launches
Diffstat (limited to 'plugins/org.eclipse.net4j.http.common')
-rw-r--r--plugins/org.eclipse.net4j.http.common/src/org/eclipse/net4j/http/internal/common/HTTPConnector.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/org.eclipse.net4j.http.common/src/org/eclipse/net4j/http/internal/common/HTTPConnector.java b/plugins/org.eclipse.net4j.http.common/src/org/eclipse/net4j/http/internal/common/HTTPConnector.java
index c0ab99e630..9277429349 100644
--- a/plugins/org.eclipse.net4j.http.common/src/org/eclipse/net4j/http/internal/common/HTTPConnector.java
+++ b/plugins/org.eclipse.net4j.http.common/src/org/eclipse/net4j/http/internal/common/HTTPConnector.java
@@ -265,8 +265,16 @@ public abstract class HTTPConnector extends Connector implements IHTTPConnector
public void execute()
{
- HTTPChannel channel = (HTTPChannel)getChannel(getChannelID());
long operationCount = getOperationCount();
+
+ short channelID = getChannelID();
+ HTTPChannel channel = (HTTPChannel)getChannel(channelID);
+ if (channel == null)
+ {
+ OM.LOG.error("Channel " + channelID + " not found");
+ return;
+ }
+
synchronized (channel)
{
// Execute preceding operations if necessary

Back to the top