mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
This commit is contained in:
@@ -125,9 +125,11 @@ public class UsageViewUtil {
|
||||
TextRange rangeInElement = usage.getRangeInElement();
|
||||
assert rangeInElement != null : usage;
|
||||
TextRange range = rangeInElement.shiftRight(injectionOffsetInMasterFile);
|
||||
PsiFile containingFile = context.getContainingFile();
|
||||
if (containingFile == null) continue; //move package to another package
|
||||
set.remove(
|
||||
NonCodeUsageInfo.create(
|
||||
context.getContainingFile(),
|
||||
containingFile,
|
||||
range.getStartOffset(),
|
||||
range.getEndOffset(),
|
||||
((MoveRenameUsageInfo)usage).getReferencedElement(),
|
||||
|
||||
Reference in New Issue
Block a user