1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Bug 514950 - NullPointerException running Organize Includes

Change-Id: Ic851d389a28e838775f20879bb88ffe00b9b55c0
This commit is contained in:
Sergey Prigogin 2017-04-16 12:33:34 -07:00
parent 593dc77b6d
commit 908a609a53

View file

@ -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)