mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix npe because of invalid usages on UsageView regrouping
This commit is contained in:
@@ -248,6 +248,10 @@ public class UsageViewImpl implements UsageView {
|
||||
myBuilder.setFilteringRules(getFilteringRuleProvider().getActiveRules(myProject));
|
||||
for (Iterator<Usage> i = allUsages.iterator(); i.hasNext();) {
|
||||
Usage usage = i.next();
|
||||
if (!usage.isValid()) {
|
||||
i.remove();
|
||||
continue;
|
||||
}
|
||||
if (usage instanceof MergeableUsage) {
|
||||
((MergeableUsage)usage).reset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user