added fix for error log reported in sonar

No match.