Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2012-09-17 02:45:08 -0400
committerMarkus Schorn2012-09-17 03:00:18 -0400
commit3b03ad0e7a640097917239bbfe12977c8bf6b0c8 (patch)
treea7a85dd873569edb5d5ad9b0c5aa1c26e13d5203
parent4536b4b84c6c1a894165193bb31873e11028d010 (diff)
downloadorg.eclipse.cdt-3b03ad0e7a640097917239bbfe12977c8bf6b0c8.tar.gz
org.eclipse.cdt-3b03ad0e7a640097917239bbfe12977c8bf6b0c8.tar.xz
org.eclipse.cdt-3b03ad0e7a640097917239bbfe12977c8bf6b0c8.zip
Bug 378930: ArrayStoreException collecting fields.CDT_8_1_1
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CStructure.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CStructure.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CStructure.java
index cbf9327dcf..103c6ca043 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CStructure.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CStructure.java
@@ -170,7 +170,7 @@ public class CStructure extends PlatformObject implements ICompositeType, ICInte
for (IASTDeclarator declarator : declarators) {
IASTName name = ASTQueries.findInnermostDeclarator(declarator).getName();
IBinding binding = name.resolveBinding();
- if (binding != null)
+ if (binding instanceof IField)
fields = ArrayUtil.append(fields, (IField) binding);
}
}

Back to the top