From ef82cfd5418acc68c608996e0f815df8a71bf3d6 Mon Sep 17 00:00:00 2001 From: Joel Chen Date: Thu, 9 Apr 2020 16:50:14 -0700 Subject: [PATCH] fix: avoid null _child --- packages/xarc-app-dev/lib/dev-admin/admin-server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/xarc-app-dev/lib/dev-admin/admin-server.js b/packages/xarc-app-dev/lib/dev-admin/admin-server.js index a4ff8f705..fdfefeb04 100644 --- a/packages/xarc-app-dev/lib/dev-admin/admin-server.js +++ b/packages/xarc-app-dev/lib/dev-admin/admin-server.js @@ -526,7 +526,8 @@ ${info.name} - assuming it started.`); pendingMessages.push(data); return false; } else { - this._io.show(ck`${info.name} (PID: ${info._child.pid}) started`); + const pid = _.get(info, "_child.pid"); + this._io.show(ck`${info.name} (PID: ${pid}) started`); } started = true;