mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 19:25:38 +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,7 +37,7 @@ public class CfgHolder {
|
||||||
tc = _tc;
|
tc = _tc;
|
||||||
cfg = _cfg;
|
cfg = _cfg;
|
||||||
if (cfg == null) {
|
if (cfg == null) {
|
||||||
if (tc == null)
|
if (tc == null || tc.getParent() == null)
|
||||||
name = UIMessages.getString("StdProjectTypeHandler.2"); //$NON-NLS-1$
|
name = UIMessages.getString("StdProjectTypeHandler.2"); //$NON-NLS-1$
|
||||||
else
|
else
|
||||||
name = tc.getParent().getName();
|
name = tc.getParent().getName();
|
||||||
|
|
Loading…
Add table
Reference in a new issue