mirror of https://github.com/apache/cloudstack.git
Fixed NPE.
This commit is contained in:
parent
80dc2c0b1a
commit
346a6fe80a
|
|
@ -2383,8 +2383,10 @@ public class ApiResponseHelper implements ResponseGenerator {
|
|||
sgr.setDescription(sgd.getDescription());
|
||||
|
||||
Account account = ApiDBUtils.findAccountByNameDomain(sgd.getAccountName(), sgd.getDomainId());
|
||||
populateAccount(sgr, account.getId());
|
||||
populateDomain(sgr, sgd.getDomainId());
|
||||
if (account != null) {
|
||||
populateAccount(sgr, account.getId());
|
||||
populateDomain(sgr, account.getDomainId());
|
||||
}
|
||||
|
||||
sgr.setObjectName(sgd.getObjectName());
|
||||
securityGroupResponse.add(sgr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue