From 3f719b9b0fd3659e08ee0cb8d4d66b0453eca70a Mon Sep 17 00:00:00 2001 From: Xavier Le Vourch Date: Thu, 11 Dec 2008 07:25:27 +0000 Subject: [PATCH] oops, NPE in previous commit... git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6751 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/src/net/sourceforge/pmd/rules/design/UseSingleton.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd/src/net/sourceforge/pmd/rules/design/UseSingleton.java b/pmd/src/net/sourceforge/pmd/rules/design/UseSingleton.java index 4778db671e..1f306d8bb2 100644 --- a/pmd/src/net/sourceforge/pmd/rules/design/UseSingleton.java +++ b/pmd/src/net/sourceforge/pmd/rules/design/UseSingleton.java @@ -28,7 +28,7 @@ public class UseSingleton extends AbstractRule { while (i > 0) { Node n = decl.jjtGetChild(--i); if (n.jjtGetNumChildren() != 1) { - break; + continue; } n = n.jjtGetChild(0); if (n instanceof ASTFieldDeclaration) {