ARTEMIS-2797 Fixing user update Null
UpdateQueueTest::testUpdateQueueWithFilter was broken.
This commit is contained in:
parent
3d746d3b23
commit
562bb965ae
|
@ -720,15 +720,12 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
|
||||||
queue.setConfigurationManaged(queueConfiguration.isConfigurationManaged());
|
queue.setConfigurationManaged(queueConfiguration.isConfigurationManaged());
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
/* Why is this?
|
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
if (queueConfiguration.getUser() == null && queue.getUser() != null) {
|
if (queueConfiguration.getUser() == null && queue.getUser() != null) {
|
||||||
logger.debug("Ignoring updating Queue to a NULL user");
|
logger.debug("Ignoring updating Queue to a NULL user");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
if (queueConfiguration.getUser() != null && !queueConfiguration.getUser().equals(queue.getUser())) {
|
||||||
// user
|
|
||||||
if (!Objects.equals(queue.getUser(), queueConfiguration.getUser())) {
|
|
||||||
changed = true;
|
changed = true;
|
||||||
queue.setUser(queueConfiguration.getUser());
|
queue.setUser(queueConfiguration.getUser());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue