Skip to content
Permalink
Browse files
Add extra check for connector helper setting in Connector_impl
  • Loading branch information
ngmr committed Jun 21, 2016
1 parent 6c4cc03 commit f7c60eddd552e7a8683515bccfa1c5baacd840c8
Showing 1 changed file with 3 additions and 2 deletions.
@@ -459,6 +459,7 @@ public org.apache.yoko.orb.OCI.ConnectorInfo get_info() {
// ------------------------------------------------------------------

private Connector_impl(IOR ior, Policy[] policies, String host, int port, boolean keepAlive, ConnectCB[] cb, ListenerMap lm, ConnectionHelper helper, ExtendedConnectionHelper xhelper, Codec codec) {
if ((null == helper) && (null == xhelper)) throw new IllegalArgumentException("Both connection helpers must not be null");
ior_ = ior;
policies_ = policies;
keepAlive_ = keepAlive;
@@ -474,8 +475,8 @@ public Connector_impl(IOR ior, Policy[] policies, String host, int port, boolean
this(ior, policies, host, port, keepAlive, cb, lm, helper, null, codec);
}

public Connector_impl(IOR ior, Policy[] policies, String host, int port, boolean keepAlive, ConnectCB[] cb, ListenerMap lm, ExtendedConnectionHelper helper, Codec codec) {
this(ior, policies, host, port, keepAlive, cb, lm, null, helper, codec);
public Connector_impl(IOR ior, Policy[] policies, String host, int port, boolean keepAlive, ConnectCB[] cb, ListenerMap lm, ExtendedConnectionHelper xhelper, Codec codec) {
this(ior, policies, host, port, keepAlive, cb, lm, null, xhelper, codec);
}

public void finalize() throws Throwable {

0 comments on commit f7c60ed

Please sign in to comment.