check if destination is empty, not just null
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user