mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +02:00
Fix for bug64085 -- NPE on New managed project creation. Getting the working directory for an empty project was a no-no, and one of the changes I made introduced the possibility of this happening during autobuild.
This commit is contained in:
parent
24b52e838e
commit
f6db199fe7
2 changed files with 6 additions and 2 deletions
|
@ -204,7 +204,8 @@ public class GeneratedMakefileBuilder extends ACBuilder {
|
||||||
if (topBuildDir != null) {
|
if (topBuildDir != null) {
|
||||||
invokeMake(true, topBuildDir, info, monitor);
|
invokeMake(true, topBuildDir, info, monitor);
|
||||||
} else {
|
} else {
|
||||||
monitor.done();
|
statusMsg = ManagedMakeMessages.getFormattedString(BUILD_FINISHED, getProject().getName()); //$NON-NLS-1$
|
||||||
|
monitor.subTask(statusMsg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
monitor.worked(1);
|
monitor.worked(1);
|
||||||
|
|
|
@ -1086,7 +1086,10 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
|
||||||
* @see org.eclipse.cdt.managedbuilder.makegen.IManagedBuilderMakefileGenerator#getTopBuildDir()
|
* @see org.eclipse.cdt.managedbuilder.makegen.IManagedBuilderMakefileGenerator#getTopBuildDir()
|
||||||
*/
|
*/
|
||||||
public IPath getBuildWorkingDir() {
|
public IPath getBuildWorkingDir() {
|
||||||
return topBuildDir.removeFirstSegments(1);
|
if (topBuildDir != null) {
|
||||||
|
return topBuildDir.removeFirstSegments(1);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue