Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Krasilnikov2007-09-24 10:10:35 -0400
committerOleg Krasilnikov2007-09-24 10:10:35 -0400
commitb8fc578945ec59a156ee0b42accbee24af11a063 (patch)
tree7c0d5b72a66269400e6a6c6d580f33c3b71b471d
parentbb1b08484a9854d032f5708c3c048f1cf5c3bfc6 (diff)
downloadorg.eclipse.cdt-b8fc578945ec59a156ee0b42accbee24af11a063.tar.gz
org.eclipse.cdt-b8fc578945ec59a156ee0b42accbee24af11a063.tar.xz
org.eclipse.cdt-b8fc578945ec59a156ee0b42accbee24af11a063.zip
Bug #204365 : NPE in Builder.getDefaultOutputSettings()
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java
index af4eb50adec..367e0cd7029 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java
@@ -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;

Back to the top