mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-23 08:13:50 +02:00
check for deleted items to avoid null pointer
This commit is contained in:
parent
61cbdb14c7
commit
c3698a5f78
1 changed files with 10 additions and 7 deletions
|
@ -1674,6 +1674,8 @@ private DataElement createDataElementFromLSString(DataElement subject,
|
||||||
for (int f = 0; f < children.size(); f++)
|
for (int f = 0; f < children.size(); f++)
|
||||||
{
|
{
|
||||||
DataElement child = (DataElement)children.get(f);
|
DataElement child = (DataElement)children.get(f);
|
||||||
|
if (!child.isDeleted())
|
||||||
|
{
|
||||||
String type = child.getType();
|
String type = child.getType();
|
||||||
if (type.equals(UNIVERSAL_FILE_DESCRIPTOR) || type.equals(UNIVERSAL_ARCHIVE_FILE_DESCRIPTOR))
|
if (type.equals(UNIVERSAL_FILE_DESCRIPTOR) || type.equals(UNIVERSAL_ARCHIVE_FILE_DESCRIPTOR))
|
||||||
{
|
{
|
||||||
|
@ -1687,6 +1689,7 @@ private DataElement createDataElementFromLSString(DataElement subject,
|
||||||
filteredChildren.add(child);
|
filteredChildren.add(child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (filteredChildren.size() != 0)
|
if (filteredChildren.size() != 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue