Skip to content

Commit 0be52e9

Browse files
authored
fix(doctor): Cannot read property 'toLowerCase' of null (#5604)
The `ns doctor android` command was failing because null was being passed as `platform` to `PlatformEnvironmentRequirements.getEnvVerificationMessage()`
1 parent 289317d commit 0be52e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/doctor-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class DoctorService implements IDoctorService {
147147
"platformEnvironmentRequirements"
148148
)
149149
.checkEnvironmentRequirements({
150-
platform: null,
150+
platform: configOptions.platform,
151151
projectDir: configOptions.projectDir,
152152
runtimeVersion: configOptions.runtimeVersion,
153153
options: configOptions.options,

0 commit comments

Comments
 (0)