We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fad3b7 commit 5230c3dCopy full SHA for 5230c3d
src/main/kotlin/com/emberjs/utils/VirtualFileExtensions.kt
@@ -24,8 +24,8 @@ val VirtualFile.isEmberFolder: Boolean
24
25
val VirtualFile.isInRepoAddon: Boolean
26
get() = findFileByRelativePath("package.json") != null &&
27
- parent.name == "lib" &&
28
- parent.parent.isEmberFolder
+ parent?.name == "lib" &&
+ parent?.parent?.isEmberFolder == true
29
30
/**
31
* Searches all parent paths until it finds a path containing a `package.json` file.
0 commit comments