Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null check exception when running patrol doctor #2475

Open
matthew-carroll opened this issue Dec 26, 2024 · 2 comments · May be fixed by #2483
Open

Null check exception when running patrol doctor #2475

matthew-carroll opened this issue Dec 26, 2024 · 2 comments · May be fixed by #2483
Assignees

Comments

@matthew-carroll
Copy link

When I run patrol doctor after installing the CLI, I get the following output:

Patrol doctor:
Patrol CLI version: 3.4.1
Flutter command: flutter 
  Flutter 3.27.1 • channel stable
Android: 
• Program adb found in /Users/admin/Library/Android/sdk/platform-tools/adb
• Env var $ANDROID_HOME is not set. (See the link: https://developer.android.com/tools/variables#set)
iOS / macOS: 
• Program xcodebuild found in /usr/bin/xcodebuild
• Program ideviceinstaller not found (install with `brew install ideviceinstaller`)
Unhandled exception:
Null check operator used on a null value
#0      PatrolCommand.flutterCommand (package:patrol_cli/src/runner/patrol_command.dart:241:30)
#1      DoctorCommand._printFlutterInfo (package:patrol_cli/src/commands/doctor.dart:49:17)
#2      DoctorCommand.run (package:patrol_cli/src/commands/doctor.dart:30:5)
#3      PatrolCommandRunner._runDoctor (package:patrol_cli/src/runner/patrol_command_runner.dart:408:57)
#4      PatrolCommandRunner._handleFirstRun (package:patrol_cli/src/runner/patrol_command_runner.dart:378:7)
#5      PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:300:7)
#6      patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:71:33)
#7      main (file:///Users/admin/.pub-cache/hosted/pub.dev/patrol_cli-3.4.1/bin/main.dart:6:26)
#8      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:33)
#9      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
@MarlonDSC
Copy link

Add your ANDROID_HOME environment variable

@matthew-carroll
Copy link
Author

I'll give that a try and report back. Even if that's the issue, there probably shouldn't be a situation where a stacktrace error is reported for a known piece of missing info.

@zoskar zoskar self-assigned this Jan 7, 2025
@pdenert pdenert linked a pull request Jan 13, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants