IDEA-266461 JSP Tag Plugin completion broken in IDEA 2021.1
authorDmitry Avdeev <dmitry.avdeev@jetbrains.com>
Mon, 12 Apr 2021 11:29:21 +0000 (14:29 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Mon, 12 Apr 2021 11:30:26 +0000 (11:30 +0000)
avoid UnsupportedOperationException caused by files in jar

GitOrigin-RevId: 21a5b8d5b2e98b6c4a7f17cdd9296ef9572eae40

java/jsp-spi/src/com/intellij/psi/jsp/JspSpiUtil.java

index 7d419ea74bca01a7cdba07b2ec9cbd3342433e49..5da8dc8a0c8bb432c1943f2535cc0197fc836956 100644 (file)
@@ -135,7 +135,10 @@ public abstract class JspSpiUtil {
     List<Path> result = new ArrayList<>();
     processClassPathItems(virtualFile, module, file -> {
       if (file != null && file.isValid()) {
-        result.add(file.toNioPath());
+        Path path = file.getFileSystem().getNioPath(file);
+        if (path != null) {
+          result.add(path);
+        }
       }
     }, includeModuleOutput);
     return result;