Compare commits

...

2 Commits

Author SHA1 Message Date
Manoj Kumar 5f09250714
Merge cd9530d48b into cd5bb09d0d 2026-01-22 09:59:55 +00:00
Manoj Kumar cd9530d48b
Add log for null templateVO 2026-01-12 17:00:13 +05:30
1 changed files with 3 additions and 0 deletions

View File

@ -296,6 +296,9 @@ public class TemplateDataFactoryImpl implements TemplateDataFactory {
@Override
public boolean isTemplateMarkedForDirectDownload(long templateId) {
VMTemplateVO templateVO = imageDataDao.findById(templateId);
if (templateVO == null) {
throw new CloudRuntimeException(String.format("Template not found with ID: %s", templateId));
}
return templateVO.isDirectDownload();
}
}