Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2009-08-31 21:33:59 -0400
committerAndrew Gvozdev2009-08-31 21:33:59 -0400
commit2d37a5a88647e78577963d619c9c828c9e22d519 (patch)
tree9b7eff87e7f95c919d42c4a4736f1d2687005f92
parentc6e2138416dce00bb85bd7ac011e84e69197dcdb (diff)
downloadorg.eclipse.cdt-2d37a5a88647e78577963d619c9c828c9e22d519.tar.gz
org.eclipse.cdt-2d37a5a88647e78577963d619c9c828c9e22d519.tar.xz
org.eclipse.cdt-2d37a5a88647e78577963d619c9c828c9e22d519.zip
bug 286226: Launch configuration naming, fixed NPE
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CfgHolder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CfgHolder.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CfgHolder.java
index 2fd8e8682c..62841b84e8 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CfgHolder.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CfgHolder.java
@@ -37,10 +37,10 @@ public class CfgHolder {
tc = _tc;
cfg = _cfg;
if (cfg == null) {
- if (tc == null)
+ if (tc == null || tc.getParent() == null)
name = UIMessages.getString("StdProjectTypeHandler.2"); //$NON-NLS-1$
- else
- name = tc.getParent().getName();
+ else
+ name = tc.getParent().getName();
} else
name = cfg.getName();
}

Back to the top