mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
Follow up for bug 292051.
This commit is contained in:
parent
6ddc2fc4ca
commit
06bfab7f23
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ public class CPPMethodTemplate extends CPPFunctionTemplate implements ICPPMethod
|
|||
parent = parent.getParent();
|
||||
|
||||
IASTDeclaration decl = (IASTDeclaration) parent;
|
||||
if (decl instanceof ICPPASTCompositeTypeSpecifier)
|
||||
if (decl != null && decl.getParent() instanceof ICPPASTCompositeTypeSpecifier)
|
||||
return decl;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue