From 7821da66cc99b1d6071cc3a76953cbe5d7d0fb36 Mon Sep 17 00:00:00 2001 From: Min Chen Date: Fri, 18 Apr 2014 17:35:01 -0700 Subject: [PATCH] Fix findBugs bug. --- server/src/com/cloud/user/AccountManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/user/AccountManagerImpl.java b/server/src/com/cloud/user/AccountManagerImpl.java index 364d0b7ecfa..37e4b437231 100755 --- a/server/src/com/cloud/user/AccountManagerImpl.java +++ b/server/src/com/cloud/user/AccountManagerImpl.java @@ -2320,7 +2320,7 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M domainIdRecursiveListProject.second(false); // isRecursive is only valid if only domainId is passed. } - if (permittedDomains.isEmpty() && permittedAccounts.isEmpty() & permittedResources.isEmpty()) { + if (permittedDomains.isEmpty() && permittedAccounts.isEmpty() && permittedResources.isEmpty()) { // if at this point, all permitted arrays are empty, that means that caller cannot see anything, we put -1 in permittedAccounts // to distinguish this case from the case that caller can see everything permittedAccounts.add(-1L);