mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ea-26204
This commit is contained in:
@@ -93,7 +93,7 @@ public class ChunkExtractor {
|
||||
}
|
||||
};
|
||||
|
||||
public static TextChunk[] extractChunks(PsiFile file, UsageInfo2UsageAdapter usageAdapter) {
|
||||
public static TextChunk[] extractChunks(@NotNull PsiFile file, UsageInfo2UsageAdapter usageAdapter) {
|
||||
return ourExtractors.get().getValue().get(file).extractChunks(usageAdapter);
|
||||
}
|
||||
|
||||
|
||||
@@ -120,7 +120,8 @@ public class UsageInfo2UsageAdapter implements UsageInModule,
|
||||
}
|
||||
|
||||
private TextChunk[] initChunks() {
|
||||
TextChunk[] chunks = ChunkExtractor.extractChunks(getPsiFile(), this);
|
||||
PsiFile file = getPsiFile();
|
||||
TextChunk[] chunks = file == null ? TextChunk.EMPTY_ARRAY : ChunkExtractor.extractChunks(file, this);
|
||||
myTextChunks = new SoftReference<TextChunk[]>(chunks);
|
||||
return chunks;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user