1
0
Fork 0
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:
Sergey Prigogin 2017-01-18 20:19:21 -08:00 committed by Gerrit Code Review @ Eclipse.org
parent d780df14c2
commit 37db6b290c

View file

@ -231,7 +231,8 @@ public class CPPVariable extends PlatformObject implements ICPPInternalVariable
return null; return null;
} }
if (!initEval.isValueDependent() ) { if (!initEval.isValueDependent() ) {
return initEval.getValue(fDefinition); IASTNode point = fDefinition != null ? fDefinition : fDeclarations[0];
return initEval.getValue(point);
} }
return DependentValue.create(initEval); return DependentValue.create(initEval);
} }