diff --git a/source/java/org/alfresco/repo/model/Repository.java b/source/java/org/alfresco/repo/model/Repository.java index 16a9232b24..616b185b06 100644 --- a/source/java/org/alfresco/repo/model/Repository.java +++ b/source/java/org/alfresco/repo/model/Repository.java @@ -76,9 +76,8 @@ public class Repository implements ApplicationContextAware, ApplicationListener, // company home private StoreRef companyHomeStore; private String companyHomePath; - private Map companyHomeRefs; - - private Map rootRefs; + final private Map companyHomeRefs = new ConcurrentHashMap(); + final private Map rootRefs = new ConcurrentHashMap(); /** @@ -199,20 +198,9 @@ public class Repository implements ApplicationContextAware, ApplicationListener, { tenantAdminService.register(this); - if (companyHomeRefs == null) - { - companyHomeRefs = new ConcurrentHashMap(4); - } - - if (rootRefs == null) - { - rootRefs = new ConcurrentHashMap(4); - } - getCompanyHome(); } - /** * Gets the root home of the company home store *