mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 536805 - NPE in CPPEvaluation.maybeApplyConversion()
Change-Id: I42e780f90aacf9383b722a8b82e441d4032d14e7
This commit is contained in:
parent
adbaa608cb
commit
3ed176d0c2
1 changed files with 4 additions and 0 deletions
|
@ -172,6 +172,10 @@ public abstract class CPPEvaluation implements ICPPEvaluation {
|
|||
*/
|
||||
protected static ICPPEvaluation maybeApplyConversion(ICPPEvaluation argument, IType targetType,
|
||||
boolean allowContextualConversion) {
|
||||
if (targetType == null) {
|
||||
return argument;
|
||||
}
|
||||
|
||||
IType type = argument.getType();
|
||||
|
||||
// Types match - don't bother to check for conversions.
|
||||
|
|
Loading…
Add table
Reference in a new issue