Resolved the code analysis error.