1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

bug 328780: NPE when compiler options are displayed

This commit is contained in:
Andrew Gvozdev 2010-10-27 02:20:41 +00:00
parent a2ee72d9c5
commit 8bb961660c

View file

@ -77,6 +77,7 @@ public class ManagedCommandLineGenerator implements
outputName = DOUBLE_QUOTE + outputName + DOUBLE_QUOTE; outputName = DOUBLE_QUOTE + outputName + DOUBLE_QUOTE;
String inputsStr=""; //$NON-NLS-1$ String inputsStr=""; //$NON-NLS-1$
if (inputResources!=null) {
for (String inp : inputResources) { for (String inp : inputResources) {
if(inp!=null && inp.length()>0) { if(inp!=null && inp.length()>0) {
// if the input resource isn't a variable then quote it // if the input resource isn't a variable then quote it
@ -87,6 +88,7 @@ public class ManagedCommandLineGenerator implements
} }
} }
inputsStr = inputsStr.trim(); inputsStr = inputsStr.trim();
}
String flagsStr = stringArrayToString(flags); String flagsStr = stringArrayToString(flags);