1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug #204365 : NPE in Builder.getDefaultOutputSettings()

This commit is contained in:
Oleg Krasilnikov 2007-09-24 14:10:35 +00:00
parent bb1b08484a
commit b8fc578945

View file

@ -2638,7 +2638,7 @@ public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider
IPath path = ManagedBuildManager.getBuildFullPath(cfg, this);
IProject proj = cfg.getOwner().getProject();
IPath projFullPath = proj.getFullPath();
if(projFullPath.isPrefixOf(path)){
if(path != null && projFullPath.isPrefixOf(path)){
path = path.removeFirstSegments(projFullPath.segmentCount()).makeRelative();
} else {
path = Path.EMPTY;