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:
parent
cf1ffeaadc
commit
640ca45d95
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue