Skip to content

Commit a38c65c

Browse files
authored
[fix] Fix crash when analyzer_command is null (#4823)
Old CodeChecker versions didn't store the analyzer command. In this case `null` value was written to the analyzer_command column. Decompressing it with zlib results an error.
1 parent 8548e29 commit a38c65c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/server/codechecker_server/api/report_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ def getAnalysisInfo(self, analysis_info_filter, limit, offset):
18851885

18861886
for cmd in analysis_info_query:
18871887
command = zlib.decompress(cmd.analyzer_command) \
1888-
.decode("utf-8")
1888+
.decode("utf-8") if cmd.analyzer_command else ""
18891889

18901890
checkers_q = session \
18911891
.query(Checker.analyzer_name,

0 commit comments

Comments
 (0)