check if it is finish, because commit() also invoked from "previous" action

This commit is contained in:
Eugene Kudelevsky
2012-07-13 22:57:02 +04:00
parent cb6433f881
commit 358f72f2b8
@@ -289,6 +289,9 @@ class ApkStep extends ExportSignedPackageWizardStep {
@Override
public void _commit(boolean finishChosen) throws CommitStepException {
if (!finishChosen) {
return;
}
final String apkPath = myApkPathField.getText().trim();
if (apkPath.length() == 0) {
throw new CommitStepException(AndroidBundle.message("android.extract.package.specify.apk.path.error"));