mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix NPE.
This commit is contained in:
parent
de22c3b311
commit
4fd94ed31f
1 changed files with 15 additions and 12 deletions
|
@ -148,18 +148,21 @@ public class DiscoveredPathInfo implements IPerProjectDiscoveredPathInfo, IDisco
|
|||
Set<String> symbolsSet = symbols.keySet();
|
||||
for (String symbol : symbolsSet) {
|
||||
SymbolEntry se = symbols.get(symbol);
|
||||
List<String> activeValues = se.getActiveRaw();
|
||||
for (String value : activeValues) {
|
||||
Element symbolElement = doc.createElement(DEFINED_SYMBOL);
|
||||
symbolElement.setAttribute(SYMBOL, value);
|
||||
collectorElem.appendChild(symbolElement);
|
||||
}
|
||||
List<String> removedValues = se.getRemovedRaw();
|
||||
for (String value : removedValues) {
|
||||
Element symbolElement = doc.createElement(DEFINED_SYMBOL);
|
||||
symbolElement.setAttribute(SYMBOL, value);
|
||||
symbolElement.setAttribute(REMOVED, "true"); //$NON-NLS-1$
|
||||
collectorElem.appendChild(symbolElement);
|
||||
if (se != null)
|
||||
{
|
||||
List<String> activeValues = se.getActiveRaw();
|
||||
for (String value : activeValues) {
|
||||
Element symbolElement = doc.createElement(DEFINED_SYMBOL);
|
||||
symbolElement.setAttribute(SYMBOL, value);
|
||||
collectorElem.appendChild(symbolElement);
|
||||
}
|
||||
List<String> removedValues = se.getRemovedRaw();
|
||||
for (String value : removedValues) {
|
||||
Element symbolElement = doc.createElement(DEFINED_SYMBOL);
|
||||
symbolElement.setAttribute(SYMBOL, value);
|
||||
symbolElement.setAttribute(REMOVED, "true"); //$NON-NLS-1$
|
||||
collectorElem.appendChild(symbolElement);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue