mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-3285 - added null check for adding in cache
This commit is contained in:
@@ -430,8 +430,11 @@ public class ServiceBaseImpl implements RecordsManagementModel, ApplicationConte
|
||||
}
|
||||
}
|
||||
|
||||
// cache result in transaction
|
||||
transactionCache.put(nodeRef, result);
|
||||
// cache result in transaction if result is not null
|
||||
if (result != null)
|
||||
{
|
||||
transactionCache.put(nodeRef, result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user