From 2794dda8120c03ab689d4f223f9086bca76165ab Mon Sep 17 00:00:00 2001 From: Andrew Niefer Date: Wed, 27 Apr 2005 20:23:03 +0000 Subject: [PATCH] bug 92885: ArrayIndexOutOfBoundsException --- .../org/eclipse/cdt/internal/core/dom/parser/c/CFunction.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CFunction.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CFunction.java index 1436b49a4e9..2b5354347fe 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CFunction.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CFunction.java @@ -259,7 +259,8 @@ public class CFunction implements IFunction, ICInternalBinding { IASTStandardFunctionDeclarator orig = (IASTStandardFunctionDeclarator) getPhysicalNode(); IASTParameterDeclaration [] ops = orig.getParameters(); IASTParameterDeclaration [] nps = ((IASTStandardFunctionDeclarator)fdtor).getParameters(); - + if(ops.length < nps.length ) + return; for( int i = 0; i < nps.length; i++ ){ IASTName origname = ops[i].getDeclarator().getName(); if( origname.getBinding() != null ){