From 8d5982f2c264b96408629b3bf89cd69623c47f1d Mon Sep 17 00:00:00 2001 From: Sergey Zolotarev Date: Sat, 30 Oct 2021 10:29:20 +0600 Subject: [PATCH] fix(doctor): Cannot read property 'toLowerCase' of null The `ns doctor android` command was failing because null was being passed as `platform` to `PlatformEnvironmentRequirements.getEnvVerificationMessage()` --- lib/services/doctor-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/doctor-service.ts b/lib/services/doctor-service.ts index 072e6b89c8..09fa6946d1 100644 --- a/lib/services/doctor-service.ts +++ b/lib/services/doctor-service.ts @@ -147,7 +147,7 @@ export class DoctorService implements IDoctorService { "platformEnvironmentRequirements" ) .checkEnvironmentRequirements({ - platform: null, + platform: configOptions.platform, projectDir: configOptions.projectDir, runtimeVersion: configOptions.runtimeVersion, options: configOptions.options,