mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Fix for [Bug 222585] NPE at GnuMakefileGenerator$3.visit() from Zhang Yi with small modification
This commit is contained in:
parent
2d53d1dd31
commit
1b041f56b4
1 changed files with 2 additions and 2 deletions
|
@ -2289,8 +2289,8 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
|||
}
|
||||
|
||||
public ICSourceEntry[] getSourceEntries() {
|
||||
if(sourceEntries == null){
|
||||
if(parent != null)
|
||||
if(sourceEntries == null || sourceEntries.length == 0){
|
||||
if(parent != null && sourceEntries == null)
|
||||
return parent.getSourceEntries();
|
||||
return new ICSourceEntry[]{new CSourceEntry(Path.EMPTY, null, ICSettingEntry.VALUE_WORKSPACE_PATH | ICSettingEntry.RESOLVED)}; //$NON-NLS-1$
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue