ARTEMIS-2797 Fixing user update Null

UpdateQueueTest::testUpdateQueueWithFilter was broken.
This commit is contained in:
Clebert Suconic 2020-06-29 22:57:13 -04:00
parent 3d746d3b23
commit 562bb965ae
1 changed files with 1 additions and 4 deletions

View File

@ -720,15 +720,12 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
queue.setConfigurationManaged(queueConfiguration.isConfigurationManaged());
changed = true;
}
/* Why is this?
if (logger.isDebugEnabled()) {
if (queueConfiguration.getUser() == null && queue.getUser() != null) {
logger.debug("Ignoring updating Queue to a NULL user");
}
}
*/
// user
if (!Objects.equals(queue.getUser(), queueConfiguration.getUser())) {
if (queueConfiguration.getUser() != null && !queueConfiguration.getUser().equals(queue.getUser())) {
changed = true;
queue.setUser(queueConfiguration.getUser());
}