Skip to content

Commit f65fe0d

Browse files
committed
Minor: Fix NPE
#KT-22724 Fixed
1 parent 883558a commit f65fe0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ultimate/src/org/jetbrains/kotlin/idea/nodejs/cli/KotlinNodeJsRunConfigurationProducer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private class KotlinNodeJsRunConfigurationProducer :
3939
if (!context.isAcceptable) return false
4040

4141
val psiElement = sourceElement.get() ?: return false
42-
val psiFile = psiElement.containingFile
42+
val psiFile = psiElement.containingFile ?: return false
4343
val jsModule = psiFile.module?.jsOrJsImpl() ?: return false
4444
val project = psiFile.project
4545

0 commit comments

Comments
 (0)