From 5ce3b8479b7f42529e5d17c22c4afe83b1ce72dd Mon Sep 17 00:00:00 2001 From: cvette Date: Thu, 25 May 2017 17:08:05 +0200 Subject: [PATCH] BUGFIX: Exception when resource string is a directory --- .../lang/fusion/resolve/ref/FusionResourceStringReference.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/vette/idea/neos/lang/fusion/resolve/ref/FusionResourceStringReference.java b/src/main/java/de/vette/idea/neos/lang/fusion/resolve/ref/FusionResourceStringReference.java index 5f41a15a..78b04a82 100644 --- a/src/main/java/de/vette/idea/neos/lang/fusion/resolve/ref/FusionResourceStringReference.java +++ b/src/main/java/de/vette/idea/neos/lang/fusion/resolve/ref/FusionResourceStringReference.java @@ -40,7 +40,7 @@ List resolveInner() { if (getElement() != null && getElement().getValueStringLineContent() != null) { VirtualFile resourceFile = ResolveEngine.findResource(getElement().getProject(), getElement().getValueStringLineContent().getText()); - if (resourceFile != null) { + if (resourceFile != null && !resourceFile.isDirectory()) { result.add(PsiManager.getInstance(getElement().getProject()).findFile(resourceFile)); } }