1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 03:53:21 +02:00

Bug 522461 - NPE in ParameterGuesser.createVariable()

Change-Id: I68c2588866c9b4228134643bfa246452ee483c80
This commit is contained in:
Nathan Ridge 2017-09-19 00:11:38 -04:00
parent 2a94c46209
commit 9869cbc9ba

View file

@ -145,7 +145,7 @@ public class ParameterGuesser {
throws CModelException {
IType elementType = getType(element);
String elementName = element.getName();
if (elementType != null
if (elementType != null && enclosingType != null
&& (elementType.toString().equals(enclosingType.toString())
|| elementType.isSameType(enclosingType)
|| isImplicitlyConvertible(enclosingType, elementType, ast)