mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Bug 514950 - NullPointerException running Organize Includes
Change-Id: Ic851d389a28e838775f20879bb88ffe00b9b55c0
This commit is contained in:
parent
593dc77b6d
commit
908a609a53
1 changed files with 3 additions and 1 deletions
|
@ -1236,7 +1236,9 @@ public class BindingClassifier {
|
|||
} else if (binding instanceof ICPPTemplateParameter) {
|
||||
newBindings.add(binding);
|
||||
} else if (binding instanceof ICPPUnknownBinding) {
|
||||
newBindings.add(binding.getOwner());
|
||||
IBinding owner = binding.getOwner();
|
||||
if (owner != null)
|
||||
newBindings.add(owner);
|
||||
} else if (binding instanceof ICPPMethod) {
|
||||
newBindings.add(binding); // Include the method in case we need its inline definition.
|
||||
if (binding instanceof ICPPConstructor)
|
||||
|
|
Loading…
Add table
Reference in a new issue