mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
Merge pull request #1926 from volatilityfoundation/issues/issue1309
Avoid trying to lookup child nodes that have been filtered
This commit is contained in:
@@ -10,8 +10,8 @@ import string
|
||||
import sys
|
||||
from functools import wraps
|
||||
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, TypeVar, Union
|
||||
from volatility3.cli import text_filter
|
||||
|
||||
from volatility3.cli import text_filter
|
||||
from volatility3.framework import exceptions, interfaces, renderers
|
||||
from volatility3.framework.renderers import format_hints
|
||||
|
||||
@@ -598,7 +598,8 @@ class JsonRenderer(CLIRenderer):
|
||||
if self.filter and self.filter.filter(line):
|
||||
return accumulator
|
||||
|
||||
if node.parent:
|
||||
# Only add if the parent hasn't been filtered out
|
||||
if node.parent and node.parent.path in acc_map:
|
||||
acc_map[node.parent.path]["__children"].append(node_dict)
|
||||
else:
|
||||
final_tree.append(node_dict)
|
||||
|
||||
Reference in New Issue
Block a user