jonataslaw / jonataslaw/get_cli

Null check operator used on a null value

Open
#237 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
654
Forks
193
PR merge metrics
No merged PRs in 30d

Description

```bash
PS C:\code\getx\rem> get create page:set-act
Can't load Kernel binary: Invalid SDK hash.
✓ 文件: set_act_controller.dart 创建成功,路径: lib\app\modules\set-act\\controllers\\set_act_controller.dart
✓ 文件: set_act_view.dart 创建成功,路径: lib\app\modules\set-act\\views\\set_act_view.dart
✓ 文件: set_act_binding.dart 创建成功,路径: lib\app\modules\set-act\\bindings\\set_act_binding.dart
✓ set-act route 创建成功.
✓ SetAct page 创建成功.
✖ + HandshakeException: Connection terminated during handshake

Unhandled exception:
Null check operator used on a null value
#0 checkForUpdate.. (package:get_cli/functions/version/version_update.dart:23:51)

#1 checkForUpdate. (package:get_cli/functions/version/version_update.dart:19:9)

#2 checkForUpdate (package:get_cli/functions/version/version_update.dart:17:7)

#3 main (file:///C:/src/flutter/bin/cache/hosted/pub.flutter-io.cn/get_cli-1.8.4/bin/get.dart:18:9)

PS C:\code\getx\rem> get --version
Can't load Kernel binary: Invalid SDK hash.

[--version] 是多余的

░██████╗░███████╗████████╗   ░█████╗░██╗░░░░░░██╗
██╔════╝░██╔════╝╚══██╔══╝   ██╔══██╗██║░░░░░░██║
██║░░██╗░█████╗░░░░░██║░░░   ██║░░╚═╝██║░░░░░░██║
██║░░╚██╗██╔══╝░░░░░██║░░░   ██║░░██╗██║░░░░░░██║
╚██████╔╝███████╗░░░██║░░░   ╚█████╔╝███████╗ ██║
░╚═════╝░╚══════╝░░░╚═╝░░░   ░╚════╝░╚══════╝ ╚═╝

Version: 1.8.4

PS C:\code\getx\rem> flutter --version
Flutter 3.14.0-0.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 120d54d33a (2 weeks ago) • 2023-08-17 14:10:34 -0500
Engine • revision f613b67824
Tools • Dart 3.2.0 (build 3.2.0-42.1.beta) • DevTools 2.26.1

```

Is there any problem here? 🤔

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.