mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-1 Correct NPE with symbol filter restore
This commit is contained in:
@@ -270,7 +270,9 @@ 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);
|
||||||
f.restoreFromXml(child);
|
if (f != null) { // NOTE: filter definition may have been dropped and not found
|
||||||
|
f.restoreFromXml(child);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rebuildActiveFilters();
|
rebuildActiveFilters();
|
||||||
|
|||||||
Reference in New Issue
Block a user