mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 10603: fixed NPE in listTemplates
status 10603: resolved fixed
This commit is contained in:
parent
01a47e0717
commit
2fca9d0a49
@ -1304,7 +1304,7 @@ public class ApiResponseHelper implements ResponseGenerator {
|
||||
@Override
|
||||
public List<TemplateResponse> createTemplateResponses(long templateId, Long zoneId, boolean readyOnly) {
|
||||
List<DataCenterVO> dcs = new ArrayList<DataCenterVO>();
|
||||
if (zoneId == -1) {
|
||||
if (zoneId == null || zoneId == -1) {
|
||||
dcs.addAll(ApiDBUtils.listZones());
|
||||
List<TemplateResponse> response = new ArrayList<TemplateResponse>();
|
||||
for (DataCenterVO dc : dcs ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user