mirror of https://github.com/apache/activemq.git
avoided NPE in a number of test cases
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7c7cca9dfb
commit
298ccf2a77
|
@ -111,7 +111,9 @@ public abstract class AbstractConnection implements Service, Connection, Task, C
|
|||
|
||||
this.connector = connector;
|
||||
this.broker = broker;
|
||||
this.statistics.setParent(connector.getStatistics());
|
||||
if (connector != null) {
|
||||
this.statistics.setParent(connector.getStatistics());
|
||||
}
|
||||
|
||||
if( taskRunnerFactory != null ) {
|
||||
taskRunner = taskRunnerFactory.createTaskRunner( this );
|
||||
|
|
Loading…
Reference in New Issue