Skip to content

Commit cd27027

Browse files
committed
Catch null exchange value
1 parent 5932249 commit cd27027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/isc/rabbitmq/API.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public API(String host, int port, String user, String pass, String virtualHost,
5959
}
6060

6161
_queue = queue;
62-
_exchange = exchange;
62+
_exchange = exchange != null ? exchange : "";
6363
}
6464

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

0 commit comments

Comments
 (0)