Skip to content

Commit

Permalink
BUGFIX: Exception when resource string is a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cvette committed May 25, 2017
1 parent 75b9df7 commit 5ce3b84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ List<PsiElement> 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));
}
}
Expand Down

0 comments on commit 5ce3b84

Please sign in to comment.