We use SonarQube 8.5, Scanner 3.0 and the gradle plugin, Java11, gradle 6.7 on macOS 10.15.7.
When performing a scan a NullPointerException is thrown:
stacktrace.txt (16.8 KB)
The error can be reproduced with the attached gradle project: sq_bug.zip (59.8 KB)
If you uncomment the commented code the Exception will not be thrown.
Could it be a bug in the java scanner?