1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Bug 536805 - NPE in CPPEvaluation.maybeApplyConversion()

Change-Id: I42e780f90aacf9383b722a8b82e441d4032d14e7
This commit is contained in:
Nathan Ridge 2018-07-08 14:27:15 -04:00
parent adbaa608cb
commit 3ed176d0c2

View file

@ -172,6 +172,10 @@ public abstract class CPPEvaluation implements ICPPEvaluation {
*/ */
protected static ICPPEvaluation maybeApplyConversion(ICPPEvaluation argument, IType targetType, protected static ICPPEvaluation maybeApplyConversion(ICPPEvaluation argument, IType targetType,
boolean allowContextualConversion) { boolean allowContextualConversion) {
if (targetType == null) {
return argument;
}
IType type = argument.getType(); IType type = argument.getType();
// Types match - don't bother to check for conversions. // Types match - don't bother to check for conversions.