mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-20 23:45:23 +02:00
Remove the possibility of an NPE in the client of the contribution by returning an empty map instead of null
This commit is contained in:
parent
878d7fb0dd
commit
3e7939462a
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
package org.eclipse.cdt.make.internal.core.scannerconfig.gnu;
|
package org.eclipse.cdt.make.internal.core.scannerconfig.gnu;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.StringTokenizer;
|
import java.util.StringTokenizer;
|
||||||
|
|
||||||
|
@ -96,7 +97,7 @@ public class GCCSpecsConsoleParser implements IScannerInfoConsoleParser {
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
fCollector.contributeToScannerConfig(fProject, includes, symbols, null);
|
fCollector.contributeToScannerConfig(fProject, includes, symbols, new HashMap());
|
||||||
TraceUtil.outputTrace("Scanner info from \'specs\' file", //$NON-NLS-1$
|
TraceUtil.outputTrace("Scanner info from \'specs\' file", //$NON-NLS-1$
|
||||||
"Include paths", includes, new ArrayList(), "Defined symbols", symbols); //$NON-NLS-1$ //$NON-NLS-2$);
|
"Include paths", includes, new ArrayList(), "Defined symbols", symbols); //$NON-NLS-1$ //$NON-NLS-2$);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue