I wrote ObjectUtils.isEmpty, why does it say I get NullPointerException?

if(ObjectUtils.isEmpty(dto) || dto.getName() == “”) {
return;
} → my source

I wrote ObjectUtils.isEmpty, why does it say I get NullPointerException?
please somebody help me!

Hey there.

I moved your post to the section on reporting false-positives.

Please review the post and make sure you include the missing details (like specific rule ID, and version of SonarQube used…)