Skip to content

Commit 8e3d940

Browse files
authored
bugfix: Check if the output path is undefined or not (#355)
1 parent 0283b8b commit 8e3d940

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/exportJarSteps/GenerateJarExecutor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export class GenerateJarExecutor implements IExportJarStepExecutor {
3737
let destPath = "";
3838
if (stepMetadata.outputPath === SETTING_ASKUSER) {
3939
const outputUri: Uri = await saveDialog(stepMetadata.workspaceFolder.uri, "Generate");
40+
if (outputUri === undefined) {
41+
return Promise.reject();
42+
}
4043
destPath = outputUri.fsPath;
4144
} else {
4245
// Both the absolute path and the relative path (to workspace folder) are supported.

0 commit comments

Comments
 (0)