Fix detecting of non-physical files in ClassFileFactory
This commit is contained in:
@@ -272,6 +272,7 @@ public class ClassFileFactory implements OutputFileCollection {
|
|||||||
private static List<File> toIoFilesIgnoringNonPhysical(@NotNull Collection<? extends PsiFile> psiFiles) {
|
private static List<File> toIoFilesIgnoringNonPhysical(@NotNull Collection<? extends PsiFile> psiFiles) {
|
||||||
List<File> result = new ArrayList<>(psiFiles.size());
|
List<File> result = new ArrayList<>(psiFiles.size());
|
||||||
for (PsiFile psiFile : psiFiles) {
|
for (PsiFile psiFile : psiFiles) {
|
||||||
|
if (psiFile == null) continue;
|
||||||
VirtualFile virtualFile = psiFile.getVirtualFile();
|
VirtualFile virtualFile = psiFile.getVirtualFile();
|
||||||
// We ignore non-physical files here, because this code is needed to tell the make what inputs affect which outputs
|
// We ignore non-physical files here, because this code is needed to tell the make what inputs affect which outputs
|
||||||
// a non-physical file cannot be processed by make
|
// a non-physical file cannot be processed by make
|
||||||
|
|||||||
Reference in New Issue
Block a user