From cd27027267beda34e5f5b5facd45f4bdfabe90d3 Mon Sep 17 00:00:00 2001 From: eduard93 Date: Fri, 13 Apr 2018 18:04:20 +0300 Subject: [PATCH] Catch null exchange value --- src/isc/rabbitmq/API.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isc/rabbitmq/API.java b/src/isc/rabbitmq/API.java index 22b9156..c5a7d8d 100644 --- a/src/isc/rabbitmq/API.java +++ b/src/isc/rabbitmq/API.java @@ -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 {