mirror of https://github.com/apache/cloudstack.git
CID-1261670 added null check
This commit is contained in:
parent
251e88c401
commit
5251fb2dc3
|
|
@ -190,7 +190,7 @@ public class AncientDataMotionStrategy implements DataMotionStrategy {
|
|||
// for template, we want to leave it on cache for performance reason
|
||||
if ((answer == null || !answer.getResult()) && srcForCopy.getRefCount() < 2) {
|
||||
// cache object created by this copy, not already there
|
||||
s_logger.warn("Copy may not be handled correctly by agent(id: " + ep.getId() + ")." +
|
||||
s_logger.warn("Copy may not be handled correctly by agent(id: " + (ep != null ? ep.getId() : "\"unspecified\"") + ")." +
|
||||
" Delete " + cacheType + " cache(id: " + cacheId +
|
||||
", uuid: " + cacheUuid + ")");
|
||||
cacheMgr.deleteCacheObject(srcForCopy);
|
||||
|
|
|
|||
Loading…
Reference in New Issue