Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-04-13 19:43:02 -0400
committerSergey Prigogin2012-04-13 19:43:02 -0400
commit89e9f5d607099d68b061d46b3905be9131912269 (patch)
treecb45010221df2db061c347be7fcdcfa53302e3ba /codan/org.eclipse.cdt.codan.checkers
parent03021e3af29d7b3f97c50d6a6f69b246dff25b03 (diff)
downloadorg.eclipse.cdt-89e9f5d607099d68b061d46b3905be9131912269.tar.gz
org.eclipse.cdt-89e9f5d607099d68b061d46b3905be9131912269.tar.xz
org.eclipse.cdt-89e9f5d607099d68b061d46b3905be9131912269.zip
Fixed EmptyStackException.
Diffstat (limited to 'codan/org.eclipse.cdt.codan.checkers')
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ClassMembersInitializationChecker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ClassMembersInitializationChecker.java b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ClassMembersInitializationChecker.java
index 421a601dc9..f73999e63a 100644
--- a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ClassMembersInitializationChecker.java
+++ b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ClassMembersInitializationChecker.java
@@ -138,7 +138,7 @@ public class ClassMembersInitializationChecker extends AbstractIndexAstChecker {
}
}
- if (skipCurrentConstructor) {
+ if (skipCurrentConstructor && !constructorsStack.empty()) {
constructorsStack.peek().clear();
}
return PROCESS_CONTINUE;

Back to the top