Sonar scanner cli null pointer exception in SVNFileUtil.getFileLength

This is not a generic SVN issue, a lot of OSS projects I analysed work just fine. I encountered 5 OSS projects where the sanner is failing in the SVN component.

Apart from fixing the bug in the scanner, would it also be possible to not make the scanner fail completely, but at least submit to the server what it is able to analyse?

Issue details:

  • SonarQube community edition
  • sonar-scanner-cli
  • error observed:
ERROR: Error during SonarScanner execution
        at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.getFileLength(
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.assembleStatus(
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.sendStatusStructure(
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.getDirStatus(
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.walkStatus(SVNStatusEditor17.ja        at
  • steps to reproduce:
mkdir wordpress
cd wordpress
svn co .
# create SonarQube project