提交 4b995d52 编写于 作者: R Ramya Achutha Rao

Add null check on extra bag

上级 333bebe5
......@@ -81,7 +81,12 @@ export class CrashReporterService implements ICrashReporterService {
// Experimental attempt on Mac only for now
if (isMacintosh) {
const childProcessOptions = clone(this.options);
childProcessOptions.extra.processName = name;
if (childProcessOptions.extra) {
childProcessOptions.extra.processName = name;
} else {
childProcessOptions.extra = { processName: name };
}
childProcessOptions.crashesDirectory = os.tmpdir();
return childProcessOptions;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册