- Operating system: MacOS
- Programming language you’re coding in: Java
- Connected to SonarCloud or SonarQube (and which version): 8.9.6
And a thorough description of the problem / question:
Nullable annotated function causes a false positive error.
I call getHibernateTemplate function from package org.springframework.orm.hibernate5.support package. Even though there is a null check it shows a blocker error.
if (getHibernateTemplate() != null) {
getHibernateTemplate().delete(persistentInstance);
LOG.debug("delete successful");
}