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:
parent
bb1b08484a
commit
b8fc578945
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue