minor fix to avoid exception in some test cases

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@515193 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2007-03-06 16:31:46 +00:00
parent 800fba7f6c
commit 1807dbbba3
1 changed files with 8 additions and 1 deletions

View File

@ -1447,6 +1447,9 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
}
public BlobTransferPolicy getBlobTransferPolicy() {
if (blobTransferPolicy == null) {
blobTransferPolicy = createBlobTransferPolicy();
}
return blobTransferPolicy;
}
@ -1981,5 +1984,9 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
public String toString() {
return "ActiveMQConnection {id="+info.getConnectionId()+",clientId="+info.getClientId()+",started="+started.get()+"}";
}
}
protected BlobTransferPolicy createBlobTransferPolicy() {
return new BlobTransferPolicy();
}
}