From 9ce139d4e25baaf53c2a405b346713d6f3aa63a5 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sat, 27 Apr 2019 22:06:39 +0100 Subject: [PATCH] Allow configs to potentially be accessed before initialization has happened. --- volatility/framework/interfaces/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility/framework/interfaces/configuration.py b/volatility/framework/interfaces/configuration.py index 5745b5c2a..6204d226e 100644 --- a/volatility/framework/interfaces/configuration.py +++ b/volatility/framework/interfaces/configuration.py @@ -513,7 +513,7 @@ class ConfigurableInterface(metaclass = ABCMeta): @property def config(self) -> HierarchicalDict: """The Hierarchical configuration Dictionary for this Configurable object""" - if self._config_cache is None: + if not hasattr(self, "_config_cache") or self._config_cache is None: self._config_cache = self._context.config.branch(self._config_path) return self._config_cache