Getting Error during SonarQube Scanner execution [07:43:57]W: [Step 1/1] ERROR: Line 574 is out of range in the file src/main/java/controller/daoimpl/****.java

Sonarqube Version-7.6
Whenever trying to run the sonar analysis using sonar:sonar getting the above error. Every time we either recreate the file or replace the file in that folder and run the analysis again to resolve the issue. And this has to be done every time. Please provide a solution.