mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9688: Fix failing smoke tests
Fixes failing smoke tests due to enviroment issues or corner cases: - Fixes NPE in Template Manager Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
5e19e64f2f
commit
6f98fcd3a5
|
|
@ -1740,7 +1740,7 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
|
|||
|
||||
if (sourceTemplateId != null) {
|
||||
VMTemplateVO sourceTemplate = _tmpltDao.findById(sourceTemplateId);
|
||||
if(sourceTemplate != null){
|
||||
if (sourceTemplate != null && sourceTemplate.getDetails() != null) {
|
||||
details.putAll(sourceTemplate.getDetails());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue