mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
2005-03-18 Alain Magloire
Move more code in the try/finally as a precaution. Bad things where happening (i.e. NPE) but the monitor was not decremented * index/org/eclipse/cdt/internal/core/indexing/IndexManager.java
This commit is contained in:
parent
6f3bf0d981
commit
1575e7878e
2 changed files with 30 additions and 24 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-03-18 Alain Magloire
|
||||||
|
Move more code in the try/finally as a precaution. Bad things
|
||||||
|
where happening (i.e. NPE) but the monitor was not decremented
|
||||||
|
* index/org/eclipse/cdt/internal/core/indexing/IndexManager.java
|
||||||
|
|
||||||
2005-03-15 Bogdan Gheorghe
|
2005-03-15 Bogdan Gheorghe
|
||||||
Added a check for closed projects to update code
|
Added a check for closed projects to update code
|
||||||
|
|
||||||
|
|
|
@ -415,7 +415,7 @@ public class IndexManager extends JobManager{
|
||||||
//this point
|
//this point
|
||||||
ICDTIndexer indexer = null;
|
ICDTIndexer indexer = null;
|
||||||
indexer = (ICDTIndexer) indexerMap.get(project);
|
indexer = (ICDTIndexer) indexerMap.get(project);
|
||||||
|
try {
|
||||||
if (indexer == null){
|
if (indexer == null){
|
||||||
String indexerID = null;
|
String indexerID = null;
|
||||||
try {
|
try {
|
||||||
|
@ -439,7 +439,8 @@ public class IndexManager extends JobManager{
|
||||||
//Make sure we're not putting null in map
|
//Make sure we're not putting null in map
|
||||||
if (indexer != null)
|
if (indexer != null)
|
||||||
indexerMap.put(project,indexer);
|
indexerMap.put(project,indexer);
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
monitor.exitRead();
|
monitor.exitRead();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue