mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
Fix for bug 64206 -NPE because of invalid return type on Job.run method
This commit is contained in:
parent
e21a791587
commit
c092fa64d2
2 changed files with 14 additions and 4 deletions
|
@ -102,16 +102,23 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
|
||||||
if (entries.length > 0 && entries[0].equals(containerEntry)) {
|
if (entries.length > 0 && entries[0].equals(containerEntry)) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Job initJob = new Job("Initializing path container") { //$NON-NLS-1$
|
Job initJob = new Job(ManagedMakeMessages.getFormattedString("ManagedBuildInfo.message.job.init", getOwner().getName())) { //$NON-NLS-1$
|
||||||
protected IStatus run(IProgressMonitor monitor) {
|
protected IStatus run(IProgressMonitor monitor) {
|
||||||
try {
|
try {
|
||||||
// Set the raw path entries
|
// Set the raw path entries
|
||||||
cModelElement.setRawPathEntries(new IPathEntry[]{containerEntry}, new NullProgressMonitor());
|
cModelElement.setRawPathEntries(new IPathEntry[]{containerEntry}, new NullProgressMonitor());
|
||||||
} catch (CModelException e) {
|
} catch (CModelException e) {
|
||||||
return new Status(IStatus.ERROR, ManagedBuilderCorePlugin.getUniqueIdentifier(), -1, e.getLocalizedMessage(), e);
|
return new Status(IStatus.ERROR,
|
||||||
|
ManagedBuilderCorePlugin.getUniqueIdentifier(),
|
||||||
|
-1,
|
||||||
|
e.getLocalizedMessage(),
|
||||||
|
e);
|
||||||
}
|
}
|
||||||
return new Status(IStatus.OK, ManagedBuilderCorePlugin.getUniqueIdentifier(), IStatus.OK, null, null);
|
return new Status(IStatus.OK,
|
||||||
|
ManagedBuilderCorePlugin.getUniqueIdentifier(),
|
||||||
|
IStatus.OK,
|
||||||
|
ManagedMakeMessages.getFormattedString("ManagedBuildInfo.message.init.ok", getOwner().getName()), //$NON-NLS-1$
|
||||||
|
null);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -50,3 +50,6 @@ MakefileGenerator.comment.module.make.includes = Include the makefiles for each
|
||||||
MakefileGenerator.comment.module.dep.includes = Include automatically-generated dependency list:
|
MakefileGenerator.comment.module.dep.includes = Include automatically-generated dependency list:
|
||||||
MakefileGenerator.comment.autodeps = Automatically-generated dependency list:
|
MakefileGenerator.comment.autodeps = Automatically-generated dependency list:
|
||||||
MakefileGenerator.comment.header = Automatically-generated file. Do not edit!
|
MakefileGenerator.comment.header = Automatically-generated file. Do not edit!
|
||||||
|
|
||||||
|
ManagedBuildInfo.message.job.init = Initializing path container for {0}
|
||||||
|
ManagedBuildInfo.message.init.ok = Initializing path container succeeded for {0}
|
Loading…
Add table
Reference in a new issue