mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Bug 563591 - Fix exception in EvalBinding
Change-Id: If5138fec2ec00f1a88b25d3a32995a703c9aa790
This commit is contained in:
parent
0f1940afc5
commit
3997ba62f5
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ public class EvalBinding extends CPPDependentEvaluation {
|
||||||
if (fBinding == null) {
|
if (fBinding == null) {
|
||||||
// fParameterOwner is guaranteed to be not null.
|
// fParameterOwner is guaranteed to be not null.
|
||||||
ICPPParameter[] parameters = fParameterOwner.getParameters();
|
ICPPParameter[] parameters = fParameterOwner.getParameters();
|
||||||
fBinding = parameters[fParameterPosition];
|
if (parameters.length > fParameterPosition) {
|
||||||
|
fBinding = parameters[fParameterPosition];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return fBinding;
|
return fBinding;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue