ARTEMIS-1951 allow queue's user to be updated

Fix so that it only updates if not null, to avoid user being unset from existing api's, 
This is similar to other values, that only change the value when not null.
This commit is contained in:
Michael André Pearce 2018-06-25 13:55:16 +01:00 committed by Justin Bertram
parent d8ecf24733
commit c7c23454e8
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
changed = true;
queue.setExclusive(exclusive);
}
if ((user != null && !user.equals(queue.getUser()) || (user == null && queue.getUser() != null))) {
if (user != null && !user.equals(queue.getUser())) {
changed = true;
queue.setUser(user);
}