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:
parent
0209ac4783
commit
0c68019dc1
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue