compilation fixed

This commit is contained in:
Alexey Kudravtsev
2018-07-24 16:55:46 +03:00
parent 858c8342e7
commit 00fe7ea948
@@ -33,9 +33,7 @@ class ImportProjectFromScriptAction: ExternalSystemAction() {
return ExternalSystemApiUtil.getExternalRootProjectPath(containingModule) == null
}
override fun actionPerformed(e: AnActionEvent?) {
if (e == null) return
override fun actionPerformed(e: AnActionEvent) {
val virtualFile = e.getData<VirtualFile>(CommonDataKeys.VIRTUAL_FILE) ?: return
val project = e.getData<Project>(CommonDataKeys.PROJECT) ?: return