We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 906d957 commit 2ba5072Copy full SHA for 2ba5072
1 file changed
src/main/kotlin/com/joetr/modulemaker/ModuleMakerAction.kt
@@ -8,7 +8,7 @@ import com.intellij.openapi.vfs.VirtualFile
8
9
class ModuleMakerAction : AnAction() {
10
override fun actionPerformed(event: AnActionEvent) {
11
- val project: Project = event.getRequiredData(CommonDataKeys.PROJECT)
+ val project: Project = event.project ?: return
12
13
val startingLocation: VirtualFile? = event.getData(CommonDataKeys.VIRTUAL_FILE)
14
0 commit comments