mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-1 Correct NPE with symbol filter restore
This commit is contained in:
parent
d7bfd098b9
commit
0234da5db5
1 changed files with 3 additions and 1 deletions
|
@ -270,8 +270,10 @@ public class NewSymbolFilter implements SymbolFilter {
|
||||||
for (Element child : children) {
|
for (Element child : children) {
|
||||||
String childName = child.getAttributeValue(Filter.NAME_ATTRIBUTE);
|
String childName = child.getAttributeValue(Filter.NAME_ATTRIBUTE);
|
||||||
Filter f = filterMap.get(childName);
|
Filter f = filterMap.get(childName);
|
||||||
|
if (f != null) { // NOTE: filter definition may have been dropped and not found
|
||||||
f.restoreFromXml(child);
|
f.restoreFromXml(child);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rebuildActiveFilters();
|
rebuildActiveFilters();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue