Merge pull request #242 from apache/coheigea/codeql-fix

Fixing codeql issue