check if destination is empty, not just null

This commit is contained in:
Spencer Gibb
2014-08-27 14:25:11 -06:00
parent 548c163e0b
commit 230217c41a

View File

@@ -100,7 +100,9 @@ public class AmqpBusAutoConfiguration {
}
private boolean isForSelf(RemoteApplicationEvent event) {
return (event.getDestinationService() == null || event.getDestinationService().equals(getAppName()));
return (event.getDestinationService() == null
|| event.getDestinationService().trim().isEmpty()
|| event.getDestinationService().equals(getAppName()));
}
private boolean isFromSelf(RemoteApplicationEvent event) {