1
0
Fork 0
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:
Markus Schorn 2009-10-14 12:10:40 +00:00
parent 6ddc2fc4ca
commit 06bfab7f23

View file

@ -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;
}
}