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);
|
IPath path = ManagedBuildManager.getBuildFullPath(cfg, this);
|
||||||
IProject proj = cfg.getOwner().getProject();
|
IProject proj = cfg.getOwner().getProject();
|
||||||
IPath projFullPath = proj.getFullPath();
|
IPath projFullPath = proj.getFullPath();
|
||||||
if(projFullPath.isPrefixOf(path)){
|
if(path != null && projFullPath.isPrefixOf(path)){
|
||||||
path = path.removeFirstSegments(projFullPath.segmentCount()).makeRelative();
|
path = path.removeFirstSegments(projFullPath.segmentCount()).makeRelative();
|
||||||
} else {
|
} else {
|
||||||
path = Path.EMPTY;
|
path = Path.EMPTY;
|
||||||
|
|
Loading…
Add table
Reference in a new issue