Sonar-scanner fails with ERROR: java.lang.NullPointerException

We are building a QNX application using make.
Then we are sonar scanning with
C:\sonar-scanner-\bin\sonar-scanner.bat -X ‘’ ‘-Dsonar.projectKey=YYY’ ‘-Dsonar.projectName=ZZZ’ ‘-Dsonar.sources=.’ '-Dsonar.login=******’ ‘\BuildWrapper’ ‘-Dsonar.projectBaseDir=C:\Projects\QNX\QNX\TargetBuild_Debug’ ‘-Dsonar.sourceEnconding=UTF-8’ ‘-Dsonar.c.file.suffixes=.c’ ‘-Dsonar.cpp.file.suffixes=.h,.cpp’ ‘-Dsonar.verbose=true’

sonar-scanner fails with ERROR: Error during SonarQube Scanner execution java.lang.NullPointerException at com.sonar.cpp.analyzer.StdFlags.fromCppMacros(

versions are

Hi @shanz1999,

what version of SonarCFamily plugin are you using?


everything was working with: sonar-cfamily-plugin-

Hello @shanz1999,

could you please update the analyzer to version and rerun?

How do I do that?

We currently have -

C:\sonar-scanner- -windows

And the Build machine uses

RUN Invoke-WebRequest

Which is version

build-wrapper-win-x86-64.exe --version

build-wrapper, version 6.3 (win-x86-64)

Copyright © 2014-2019 SonarSource SA,

The server shows
Version 6.7.5 (build 38563).

That is not under my control.

Hello @shanz1999,

you can ask your SonarQube administrator to update version of SonarCFamily to