1
0
Fork 0
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:
Sean Evoy 2004-05-12 21:11:16 +00:00
parent 878d7fb0dd
commit 3e7939462a

View file

@ -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$);