Skip to content

Commit

Permalink
Fixing a NullPointerException in RequestResponseLink (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
yvgopal authored May 29, 2019
1 parent b1ba2c8 commit ac91c74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion azure-servicebus/azure-servicebus.pom
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-servicebus</artifactId>
<version>1.2.13</version>
<version>1.2.14</version>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ public CompletableFuture<Message> requestAysnc(Message requestMessage, Duration
this.amqpSender.sendRequest(requestId, false);

// Check and recreate links if necessary
if(!((this.amqpSender.sendLink.getLocalState() == EndpointState.ACTIVE && this.amqpSender.sendLink.getRemoteState() == EndpointState.ACTIVE)
&& (this.amqpReceiver.receiveLink.getLocalState() == EndpointState.ACTIVE && this.amqpReceiver.receiveLink.getRemoteState() == EndpointState.ACTIVE)))
if(!((this.amqpSender.sendLink != null && this.amqpSender.sendLink.getLocalState() == EndpointState.ACTIVE && this.amqpSender.sendLink.getRemoteState() == EndpointState.ACTIVE)
&& (this.amqpReceiver.receiveLink != null && this.amqpReceiver.receiveLink.getLocalState() == EndpointState.ACTIVE && this.amqpReceiver.receiveLink.getRemoteState() == EndpointState.ACTIVE)))
{
this.ensureUniqueLinkRecreation();
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<proton-j-version>0.31.0</proton-j-version>
<junit-version>4.12</junit-version>
<slf4j-version>1.7.0</slf4j-version>
<client-current-version>1.2.13</client-current-version>
<client-current-version>1.2.14</client-current-version>
</properties>

<modules>
Expand Down

0 comments on commit ac91c74

Please sign in to comment.