Nullpointer on SonarJava in version >= 5.9

Hello @Ruben_Ruiz,

Sorry, I forgot to answer you earlier. Thanks to your edit, I reproduced the issue. This is the same case as the following:

So the conclusion is going to be the same: This is a bug in rule S4738, which will be handled by SONARJAVA-2967.

If you need a workaround, you can temporarily disable rule squid:S4738, or exclude the file which is causing the analysis to fail.

Regards,
Michael