{"action":"created","issue":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/766","repository_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx","labels_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/766/labels{/name}","comments_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/766/comments","events_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/766/events","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/issues/766","id":128707938,"number":766,"title":"NullPointerException looking for CppCheck report","user":{"login":"tyrel","id":1434399,"avatar_url":"https://avatars.githubusercontent.com/u/1434399?v=3","gravatar_id":"","url":"https://api.github.com/users/tyrel","html_url":"https://github.com/tyrel","followers_url":"https://api.github.com/users/tyrel/followers","following_url":"https://api.github.com/users/tyrel/following{/other_user}","gists_url":"https://api.github.com/users/tyrel/gists{/gist_id}","starred_url":"https://api.github.com/users/tyrel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyrel/subscriptions","organizations_url":"https://api.github.com/users/tyrel/orgs","repos_url":"https://api.github.com/users/tyrel/repos","events_url":"https://api.github.com/users/tyrel/events{/privacy}","received_events_url":"https://api.github.com/users/tyrel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/milestones/6","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/milestones/M%200.9.5","labels_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/milestones/6/labels","id":1373926,"number":6,"title":"M 0.9.5","description":"* SQ 5.3 support\r\n* remove deprecated APIs\r\n* bugfixing\r\n\r\n","creator":{"login":"guwirth","id":6077367,"avatar_url":"https://avatars.githubusercontent.com/u/6077367?v=3","gravatar_id":"","url":"https://api.github.com/users/guwirth","html_url":"https://github.com/guwirth","followers_url":"https://api.github.com/users/guwirth/followers","following_url":"https://api.github.com/users/guwirth/following{/other_user}","gists_url":"https://api.github.com/users/guwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/guwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guwirth/subscriptions","organizations_url":"https://api.github.com/users/guwirth/orgs","repos_url":"https://api.github.com/users/guwirth/repos","events_url":"https://api.github.com/users/guwirth/events{/privacy}","received_events_url":"https://api.github.com/users/guwirth/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":86,"state":"open","created_at":"2015-10-24T10:23:06Z","updated_at":"2016-02-16T15:58:55Z","due_on":"2016-02-28T23:00:00Z","closed_at":null},"comments":7,"created_at":"2016-01-26T02:56:02Z","updated_at":"2016-02-16T21:50:49Z","closed_at":null,"body":"I'm getting a NPE when I attempt to run analysis on my project, with sonar-cxx 0.9.3.\r\n\r\n```\r\nINFO: Sensor CxxCoverageSensor (done) | time=1526ms\r\nINFO: Sensor CxxCppCheckSensor\r\nDEBUG: Using pattern 'null' to find reports\r\nINFO: Analysis report generated in /home/gitlab-runner/builds/580bbdff/0/hidden/path/src/.sonar/batch-report\r\nINFO: ------------------------------------------------------------------------\r\nINFO: EXECUTION FAILURE\r\nINFO: ------------------------------------------------------------------------\r\nINFO: Total time: 15.928s\r\nINFO: Final Memory: 41M/110M\r\nINFO: ------------------------------------------------------------------------\r\nERROR: Error during SonarQube Scanner execution\r\norg.sonar.api.utils.SonarException: Cannot feed the data into sonar, details: 'java.lang.NullPointerException'\r\n        at org.sonar.plugins.cxx.utils.CxxReportSensor.analyse(CxxReportSensor.java:134)\r\n        at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)\r\n        at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)\r\n\r\n.... snip ....\r\n\r\nCaused by: java.lang.NullPointerException\r\n        at org.apache.tools.ant.DirectoryScanner.setIncludes(DirectoryScanner.java:569)\r\n        at org.sonar.plugins.cxx.utils.CxxReportSensor.getReports(CxxReportSensor.java:166)\r\n        at org.sonar.plugins.cxx.utils.CxxReportSensor.analyse(CxxReportSensor.java:104)\r\n        ... 31 more\r\n```\r\nI _am_ setting the report path in my properties file:\r\n```\r\nsonar.cxx.cppcheck.reportPath=../out/doc/cppcheck/*.xml\r\n```\r\n\r\nIt looks like there's been a lot of refactoring going on in your repository here so the code that caused this may no longer exist, but maybe this problem is still there. In the code that went into 0.9.3, I'm not sure what would cause reportPath to be null, because (1) I'm setting it in my config, and (2) it's getting set to the default if it is null."},"comment":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/comments/184889472","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/issues/766#issuecomment-184889472","issue_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/766","id":184889472,"user":{"login":"mjdetullio","id":817707,"avatar_url":"https://avatars.githubusercontent.com/u/817707?v=3","gravatar_id":"","url":"https://api.github.com/users/mjdetullio","html_url":"https://github.com/mjdetullio","followers_url":"https://api.github.com/users/mjdetullio/followers","following_url":"https://api.github.com/users/mjdetullio/following{/other_user}","gists_url":"https://api.github.com/users/mjdetullio/gists{/gist_id}","starred_url":"https://api.github.com/users/mjdetullio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjdetullio/subscriptions","organizations_url":"https://api.github.com/users/mjdetullio/orgs","repos_url":"https://api.github.com/users/mjdetullio/repos","events_url":"https://api.github.com/users/mjdetullio/events{/privacy}","received_events_url":"https://api.github.com/users/mjdetullio/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T21:50:49Z","updated_at":"2016-02-16T21:50:49Z","body":"This should be fixed now that #777 is merged"}}