From eab771c0f88b944263ef7a48fdd99a5c2818a170 Mon Sep 17 00:00:00 2001 From: Jesse Sightler Date: Mon, 26 Sep 2016 11:40:47 -0400 Subject: [PATCH] This gets past an error calling readFileSync with a null path here --- packages/angular-cli/upgrade/version.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/angular-cli/upgrade/version.ts b/packages/angular-cli/upgrade/version.ts index ca591ef62f63..8a11520f4538 100644 --- a/packages/angular-cli/upgrade/version.ts +++ b/packages/angular-cli/upgrade/version.ts @@ -76,6 +76,9 @@ export class Version { const configPath = CliConfig.configFilePath(); + if (configPath === null) + return new Version(null); + const configJson = readFileSync(configPath, 'utf8'); try {