1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-07 08:15:48 +02:00

the lock was initialize at the wrong time.

This commit is contained in:
Alain Magloire 2004-06-15 13:52:07 +00:00
parent abaf42acdf
commit eb369cc11c

View file

@ -626,10 +626,13 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
if (projectContainers == null) {
projectContainers = new HashMap();
Containers.put(cproject, projectContainers);
// Initialize the first time with a lock
projectContainers.put(containerPath, new PathEntryContainerLock());
}
IPathEntryContainer container = (IPathEntryContainer) projectContainers.get(containerPath);
// Initialize the first time with a lock
if (container == null) {
container = new PathEntryContainerLock();
projectContainers.put(containerPath, container);
}
return container;
}