Skip to content

Commit

Permalink
Catch null exchange value
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard93 committed Apr 13, 2018
1 parent 5932249 commit cd27027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isc/rabbitmq/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public API(String host, int port, String user, String pass, String virtualHost,
}

_queue = queue;
_exchange = exchange;
_exchange = exchange != null ? exchange : "";
}

public void sendMessage(byte[] msg, String correlationId, String messageId) throws Exception {
Expand Down

0 comments on commit cd27027

Please sign in to comment.