1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +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:
Sean Evoy 2004-05-26 15:24:01 +00:00
parent 24b52e838e
commit f6db199fe7
2 changed files with 6 additions and 2 deletions

View file

@ -204,7 +204,8 @@ public class GeneratedMakefileBuilder extends ACBuilder {
if (topBuildDir != null) {
invokeMake(true, topBuildDir, info, monitor);
} else {
monitor.done();
statusMsg = ManagedMakeMessages.getFormattedString(BUILD_FINISHED, getProject().getName()); //$NON-NLS-1$
monitor.subTask(statusMsg);
return;
}
monitor.worked(1);

View file

@ -1086,7 +1086,10 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
* @see org.eclipse.cdt.managedbuilder.makegen.IManagedBuilderMakefileGenerator#getTopBuildDir()
*/
public IPath getBuildWorkingDir() {
return topBuildDir.removeFirstSegments(1);
if (topBuildDir != null) {
return topBuildDir.removeFirstSegments(1);
}
return null;
}
/**