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:
parent
2a94c46209
commit
9869cbc9ba
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue