mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-4991 - fix npe and reinstate test
This commit is contained in:
parent
770539d530
commit
95d20e5b47
|
@ -86,7 +86,7 @@ public class PooledProducer implements MessageProducer {
|
|||
// just in case let only one thread send at once
|
||||
synchronized (messageProducer) {
|
||||
|
||||
if (anonymous && !this.destination.equals(destination)) {
|
||||
if (anonymous && this.destination != null && !this.destination.equals(destination)) {
|
||||
throw new UnsupportedOperationException("This producer can only send messages to: " + this.destination);
|
||||
}
|
||||
|
||||
|
|
|
@ -44,11 +44,4 @@ public class JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest extends JmsTopi
|
|||
super.tearDown();
|
||||
senderConnectionFactory.stop();
|
||||
}
|
||||
|
||||
@Override // TODO remove this method when AMQ-4991 is fixed
|
||||
@Ignore("See AMQ-4991") // Ignore doesn't really work here with JUnit3 runner, just adding as documentation
|
||||
public void testSendReceive() throws Exception {
|
||||
//super.testSendReceive();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue