mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 17:25:38 +02:00
the lock was initialize at the wrong time.
This commit is contained in:
parent
abaf42acdf
commit
eb369cc11c
1 changed files with 5 additions and 2 deletions
|
@ -626,10 +626,13 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
|
||||||
if (projectContainers == null) {
|
if (projectContainers == null) {
|
||||||
projectContainers = new HashMap();
|
projectContainers = new HashMap();
|
||||||
Containers.put(cproject, projectContainers);
|
Containers.put(cproject, projectContainers);
|
||||||
// Initialize the first time with a lock
|
|
||||||
projectContainers.put(containerPath, new PathEntryContainerLock());
|
|
||||||
}
|
}
|
||||||
IPathEntryContainer container = (IPathEntryContainer) projectContainers.get(containerPath);
|
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;
|
return container;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue