Repository: ericsson/codechecker
Issue: CodeChecker check no longer works

**Describe the bug**
Since few releases ago I am getting an error when I try to check my project
```
$ CodeChecker check -b "make" -o ./reports
 No handlers could be found for logger "system"
 Traceback (most recent call last):
   File "/root/codechecker/build/CodeChecker/cc_bin/CodeChecker.py", line 111, in main
     subcommands[subcommand])
   File "/root/codechecker/build/CodeChecker/cc_bin/CodeChecker.py", line 47, in add_subcommand
     command_module.add_arguments_to_parser(sc_parser)
   File "/root/codechecker/build/CodeChecker/cc_bin/../lib/python2.7/codechecker_analyzer/cmd/check.py", line 321, in add_arguments_to_parser
     clang_has_z3 = analyzer_types.is_z3_capable(context)
   File "/root/codechecker/build/CodeChecker/lib/python2.7/codechecker_analyzer/analyzers/analyzer_types.py", line 70, in is_z3_capable
     analyzer_env)
   File "/root/codechecker/build/CodeChecker/lib/python2.7/codechecker_analyzer/host_check.py", line 83, in has_analyzer_option
     LOG.debug('run: "%s"', ' '.join(cmd))
 TypeError: sequence item 0: expected string, NoneType found
```

**CodeChecker version**
Built from Git tags: v6.11.0 (v6.11.0)

**To Reproduce**
Full log of the GitLab CI job https://gitlab.com/technic93/e2designer/-/jobs/387534282

**Expected behavior**
Should work as before

**Desktop (please complete the following information)**
 - OS: Linux
 - Browser: irrelevant

**Additional context**
Did something in the CodeChecker comandline interface changed? Thanks.


Changed files:
analyzer/codechecker_analyzer/analyzers/analyzer_types.py

diff --git a/analyzer/codechecker_analyzer/analyzers/analyzer_types.py b/analyzer/codechecker_analyzer/analyzers/analyzer_types.py
index c54e9696..39e263d4 100644
--- a/analyzer/codechecker_analyzer/analyzers/analyzer_types.py
+++ b/analyzer/codechecker_analyzer/analyzers/analyzer_types.py
@@ -30,7 +30,11 @@ supported_analyzers = {ClangSA.ANALYZER_NAME: ClangSA,
 
 def is_ctu_capable(context):
     """ Detects if the current clang is CTU compatible. """
-    check_supported_analyzers([ClangSA.ANALYZER_NAME], context)
+    enabled_analyzers, _ = \\
+        check_supported_analyzers([ClangSA.ANALYZER_NAME], context)
+    if not enabled_analyzers:
+        return False
+
     clangsa_cfg = ClangSA.construct_config_handler([], context)
 
     return clangsa_cfg.ctu_capability.is_ctu_capable
@@ -39,7 +43,11 @@ def is_ctu_capable(context):
 def is_statistics_capable(context):
     """ Detects if the current clang is Statistics compatible. """
     # Resolve potentially missing binaries.
-    check_supported_analyzers([ClangSA.ANALYZER_NAME], context)
+    enabled_analyzers, _ = \\
+        check_supported_analyzers([ClangSA.ANALYZER_NAME], context)
+    if not enabled_analyzers:
+        return False
+
     clangsa_cfg = ClangSA.construct_config_handler([], context)
 
     check_env = env.extend(context.path_env_extra,
@@ -58,7 +66,11 @@ def is_statistics_capable(context):
 
 def is_z3_capable(context):
     """ Detects if the current clang is Z3 compatible. """
-    check_supported_analyzers([ClangSA.ANALYZER_NAME], context)
+    enabled_analyzers, _ = \\
+        check_supported_analyzers([ClangSA.ANALYZER_NAME], context)
+    if not enabled_analyzers:
+        return False
+
     analyzer_binary = context.analyzer_binaries.get(ClangSA.ANALYZER_NAME)
 
     analyzer_env = env.extend(context.path_env_extra,