mirror of https://github.com/apache/cloudstack.git
CS-17842: java.lang.NullPointerException seen when using
"updateTemplatePermission" with projectids parameter.
This commit is contained in:
parent
3bf15bd1ff
commit
ec55c2e909
|
|
@ -1199,6 +1199,10 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
|
|||
|
||||
// convert projectIds to accountNames
|
||||
if (projectIds != null) {
|
||||
// CS-17842, initialize accountNames list
|
||||
if (accountNames == null ){
|
||||
accountNames = new ArrayList<String>();
|
||||
}
|
||||
for (Long projectId : projectIds) {
|
||||
Project project = _projectMgr.getProject(projectId);
|
||||
if (project == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue