diff --git a/IDE/dist/ProjectSettings.js b/IDE/dist/ProjectSettings.js index 613b691db..d57801336 100644 --- a/IDE/dist/ProjectSettings.js +++ b/IDE/dist/ProjectSettings.js @@ -200,6 +200,8 @@ function getArgs(project) { case 0: return [4 /*yield*/, read(project)]; case 1: CLArgs = (_a.sent()).CLArgs; + if (!CLArgs) + return [2 /*return*/, { CL: "", make: [] }]; CL = ''; for (key in CLArgs) { if (key[0] === '-' && key[1] === '-') { diff --git a/IDE/src/ProjectSettings.ts b/IDE/src/ProjectSettings.ts index def5b6aa8..e3be8544d 100644 --- a/IDE/src/ProjectSettings.ts +++ b/IDE/src/ProjectSettings.ts @@ -69,6 +69,8 @@ export async function restoreDefaultCLArgs(data: any): Promise { } export async function getArgs(project: any): Promise<{CL: string, make: string[]}> { let CLArgs = (await read(project)).CLArgs; + if(!CLArgs) + return { CL: "", make: []}; let CL: string = ''; for (let key in CLArgs) { if (key[0] === '-' && key[1] === '-'){