From fb9aaeed2e01c6fa85779bdd39e95d4e49d1dca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Umann?= Date: Wed, 15 Nov 2023 14:05:17 +0100 Subject: [PATCH] [context][fix] Use the property instead of the field for analyzer env AnalyzerContext.__analyzer_env is lazy initialized via AnalyzerContext.analyzer_env. __parse_CC_ANALYZER_BIN became the first to use it, but erronously accessed the field directly -- which wasn't initialized at that time. --- analyzer/codechecker_analyzer/analyzer_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyzer/codechecker_analyzer/analyzer_context.py b/analyzer/codechecker_analyzer/analyzer_context.py index 9ff3363011..cc031403db 100644 --- a/analyzer/codechecker_analyzer/analyzer_context.py +++ b/analyzer/codechecker_analyzer/analyzer_context.py @@ -94,7 +94,7 @@ def __init__(self): def __parse_CC_ANALYZER_BIN(self): env_var_bins = {} - if 'CC_ANALYZER_BIN' in self.__analyzer_env: + if 'CC_ANALYZER_BIN' in self.analyzer_env: had_error = False for value in self.__analyzer_env['CC_ANALYZER_BIN'].split(';'): try: