1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 01:35:39 +02:00

bug 286226: Launch configuration naming, fixed NPE

This commit is contained in:
Andrew Gvozdev 2009-09-01 01:18:49 +00:00
parent cf1ffeaadc
commit 640ca45d95

View file

@ -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();
}