mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +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)) {
|
||||
|
||||
} 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) {
|
||||
try {
|
||||
// Set the raw path entries
|
||||
cModelElement.setRawPathEntries(new IPathEntry[]{containerEntry}, new NullProgressMonitor());
|
||||
} 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.autodeps = Automatically-generated dependency list:
|
||||
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