import com.intellij.openapi.project.Project;
import com.intellij.openapi.roots.ProjectFileIndex;
import com.intellij.openapi.util.io.FileUtil;
+import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.util.containers.ContainerUtil;
import org.jetbrains.annotations.NotNull;
}
List<Filter.ResultItem> items = ContainerUtil.newArrayList();
for (FileHyperlinkRawData link : links) {
- VirtualFile file = findFile(FileUtil.toSystemIndependentName(link.getFilePath()));
+ String filePath = FileUtil.toSystemIndependentName(link.getFilePath());
+ VirtualFile file = StringUtil.isEmptyOrSpaces(filePath) ? null : findFile(filePath);
if (file != null) {
OpenFileHyperlinkInfo info = new OpenFileHyperlinkInfo(myProject,
file,