versions used (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube Version 6.7.6 (build 38781)
Code variable is checked for null with (if !Utils.isNullOrEmpty(state)) condition but sonar flags that a NullPointerException could be thrown (see attached image)
put inline, code from helper function
!( str == null || “”.equals(str.trim()); )
Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:
xxx → 7.9.6 → 8.9.7 → 9.3 (last step optional)
If your issue persists after upgrade, please come back to us.