Skip to content

Commit 2ba5072

Browse files
authored
move away from deprecated getRequiredData api (#73)
1 parent 906d957 commit 2ba5072

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/com/joetr/modulemaker/ModuleMakerAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import com.intellij.openapi.vfs.VirtualFile
88

99
class ModuleMakerAction : AnAction() {
1010
override fun actionPerformed(event: AnActionEvent) {
11-
val project: Project = event.getRequiredData(CommonDataKeys.PROJECT)
11+
val project: Project = event.project ?: return
1212

1313
val startingLocation: VirtualFile? = event.getData(CommonDataKeys.VIRTUAL_FILE)
1414

0 commit comments

Comments
 (0)