This commit is contained in:
Clément Fournier committed 2022-01-26 19:53:05 +01:00
1 parent 98445bd91b
commit 3cc1d1b2e0
1 file changed
+1 -1
@@ -106,7 +106,7 @@ public class CouplingBetweenObjectsRule extends AbstractJavaRule {
* @param typeNode The variable type.
*/
private void checkVariableType(ASTType typeNode) {
if (inInterface) {
if (inInterface || typeNode == null) {
return;
}
// if the field is of any type other than the class type