Skip to content

Commit

Permalink
fix spring-projects#723 NullPointerException when no channel is avail…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
jayzch committed Mar 16, 2018
1 parent a1ffe4b commit 879dd7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public SimpleConnection(com.rabbitmq.client.Connection delegate,
public Channel createChannel(boolean transactional) {
try {
Channel channel = this.delegate.createChannel();
Assert.state(channel != null, "Can't create Channel - no channel is available.");
if (transactional) {
Assert.state(channel != null, "Can't start the transaction - channel is null.");
// Just created so we want to start the transaction
channel.txSelect();
}
Expand Down

0 comments on commit 879dd7c

Please sign in to comment.