mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
logging for EA-73982 - assert: RenameProcessor.findUsages
This commit is contained in:
@@ -300,7 +300,10 @@ public class RenameProcessor extends BaseRefactoringProcessor {
|
||||
//noinspection ForLoopReplaceableByForEach
|
||||
for (int i = 0; i < elements.size(); i++) {
|
||||
PsiElement element = elements.get(i);
|
||||
LOG.assertTrue(element != null);
|
||||
if (element == null) {
|
||||
LOG.error("primary: " + myPrimaryElement + "; renamers: " + myRenamers);
|
||||
continue;
|
||||
}
|
||||
final String newName = myAllRenames.get(element);
|
||||
final UsageInfo[] usages = RenameUtil.findUsages(element, newName, mySearchInComments, mySearchTextOccurrences, myAllRenames);
|
||||
final List<UsageInfo> usagesList = Arrays.asList(usages);
|
||||
|
||||
Reference in New Issue
Block a user