mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Bug 429364 - NPE in Organize Includes.
This commit is contained in:
parent
06854adaef
commit
843cd2bf00
1 changed files with 1 additions and 1 deletions
|
@ -1313,7 +1313,7 @@ public class BindingClassifier {
|
|||
ICPPClassScope classScope = ((ICPPASTCompositeTypeSpecifier) parent).getScope();
|
||||
ICPPClassType classType = classScope.getClassType();
|
||||
ICPPMethod destructor = ClassTypeHelper.getMethodInClass(classType, MethodKind.DTOR, parent);
|
||||
if (fAst.getDefinitionsInAST(destructor).length != 0)
|
||||
if (destructor != null && fAst.getDefinitionsInAST(destructor).length != 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue