1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 296549: NPE accessing implicit methods.

This commit is contained in:
Markus Schorn 2009-12-10 13:51:47 +00:00
parent 0209ac4783
commit 0c68019dc1

View file

@ -163,8 +163,11 @@ public class AbstractCPPClassSpecializationScope implements ICPPClassSpecializat
public ICPPMethod[] getImplicitMethods() {
try {
ICPPClassScope origClassType= (ICPPClassScope) specialClass.getSpecializedBinding().getCompositeScope();
ICPPMethod[] methods= origClassType.getImplicitMethods();
ICPPClassScope origClassScope= (ICPPClassScope) specialClass.getSpecializedBinding().getCompositeScope();
if (origClassScope == null) {
return ICPPMethod.EMPTY_CPPMETHOD_ARRAY;
}
ICPPMethod[] methods= origClassScope.getImplicitMethods();
return specializeMembers(methods);
} catch (DOMException e) {
return ICPPMethod.EMPTY_CPPMETHOD_ARRAY;