mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
2004-06-18 Alain Magloire
- The call CCorePlugin.getCDescriptor(..) seems to return null. This should be fix but meanwhile give the indexer a break by catching it.
This commit is contained in:
parent
a443caeb08
commit
1972c2b70a
2 changed files with 12 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-06-18 Alain Magloire
|
||||||
|
- The call CCorePlugin.getCDescriptor(..) seems to return null.
|
||||||
|
This should be fix but meanwhile give the indexer a break by catching it.
|
||||||
|
|
||||||
2004-06-18 Andrew Niefer
|
2004-06-18 Andrew Niefer
|
||||||
- call InderManager.jobFinishedNotification( this ) from IndexRequest.cancel() so that the IndexManager's jobSet doesn't
|
- call InderManager.jobFinishedNotification( this ) from IndexRequest.cancel() so that the IndexManager's jobSet doesn't
|
||||||
become stale.
|
become stale.
|
||||||
|
|
|
@ -756,9 +756,10 @@ public class IndexManager extends JobManager implements IIndexConstants {
|
||||||
|
|
||||||
private Boolean loadIndexerEnabledFromCDescriptor(IProject project) throws CoreException {
|
private Boolean loadIndexerEnabledFromCDescriptor(IProject project) throws CoreException {
|
||||||
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(project, true );
|
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(project, true );
|
||||||
|
// FIXME: descriptor should not be null ... but ... lets catch here for now.
|
||||||
Node child = descriptor.getProjectData(CDT_INDEXER).getFirstChild();
|
|
||||||
Boolean strBool = null;
|
Boolean strBool = null;
|
||||||
|
if (descriptor != null) {
|
||||||
|
Node child = descriptor.getProjectData(CDT_INDEXER).getFirstChild();
|
||||||
|
|
||||||
while (child != null) {
|
while (child != null) {
|
||||||
if (child.getNodeName().equals(INDEXER_ENABLED))
|
if (child.getNodeName().equals(INDEXER_ENABLED))
|
||||||
|
@ -767,6 +768,7 @@ public class IndexManager extends JobManager implements IIndexConstants {
|
||||||
|
|
||||||
child = child.getNextSibling();
|
child = child.getNextSibling();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return strBool;
|
return strBool;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue