Skip to content

Commit 4b995d5

Browse files
committed
Add null check on extra bag
1 parent 333bebe commit 4b995d5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/vs/workbench/services/crashReporter/electron-browser/crashReporterService.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ export class CrashReporterService implements ICrashReporterService {
8181
// Experimental attempt on Mac only for now
8282
if (isMacintosh) {
8383
const childProcessOptions = clone(this.options);
84-
childProcessOptions.extra.processName = name;
84+
if (childProcessOptions.extra) {
85+
childProcessOptions.extra.processName = name;
86+
} else {
87+
childProcessOptions.extra = { processName: name };
88+
}
89+
8590
childProcessOptions.crashesDirectory = os.tmpdir();
8691
return childProcessOptions;
8792
}

0 commit comments

Comments
 (0)