mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Bug 510662 - NPE in BuiltinOperators.<init>
Change-Id: I1ed5c8d0e820a89fb52c4ae51bc2f2ab79ce37b3
This commit is contained in:
parent
d780df14c2
commit
37db6b290c
1 changed files with 2 additions and 1 deletions
|
@ -231,7 +231,8 @@ public class CPPVariable extends PlatformObject implements ICPPInternalVariable
|
|||
return null;
|
||||
}
|
||||
if (!initEval.isValueDependent() ) {
|
||||
return initEval.getValue(fDefinition);
|
||||
IASTNode point = fDefinition != null ? fDefinition : fDeclarations[0];
|
||||
return initEval.getValue(point);
|
||||
}
|
||||
return DependentValue.create(initEval);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue