CID-1261670 added null check

This commit is contained in:
Daan Hoogland 2015-01-05 16:01:13 +01:00
parent 251e88c401
commit 5251fb2dc3
1 changed files with 1 additions and 1 deletions

View File

@ -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);