bernardodemarco commented on code in PR #12938:
URL: https://github.com/apache/cloudstack/pull/12938#discussion_r3028112308


##########
server/src/main/java/com/cloud/user/AccountManagerImpl.java:
##########
@@ -3827,7 +3827,11 @@ public void buildACLViewSearchCriteria(SearchCriteria<? 
extends ControlledViewEn
 
     @Override
     public UserAccount getUserByApiKey(String apiKey) {
+        if (keyPair == null) {
+            return null;
+        }
         ApiKeyPairVO keyPair = apiKeyPairDao.findByApiKey(apiKey);
+

Review Comment:
   @daviftorres, we are almost there, just one more required step remaining. We 
need to add an import for `ApiArgValidator`. To do this, the following import 
clause should be added to the  `GetUserCmd.java` class:
   
   - `import org.apache.cloudstack.api.ApiArgValidator;`
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to