diff --git a/src/main/java/de/vette/idea/neos/util/ComposerUtil.java b/src/main/java/de/vette/idea/neos/util/ComposerUtil.java index 1ebaeb60..bc3bbbd1 100644 --- a/src/main/java/de/vette/idea/neos/util/ComposerUtil.java +++ b/src/main/java/de/vette/idea/neos/util/ComposerUtil.java @@ -33,8 +33,11 @@ public class ComposerUtil { @Nullable public static JsonFile getComposerManifest(PsiDirectory currentDirectory) { - JsonFile composerFile; + if (currentDirectory == null) { + return null; + } + JsonFile composerFile; do { composerFile = getComposerManifestInDirectory(currentDirectory); currentDirectory = currentDirectory.getParentDirectory();