0
1

More than 1 year has passed since last update.

FlutterのiOSデバッグ起動時に Null check operator used on a null value

Posted at

Flutterのデバッグ作業中、アプリ起動時にFirebaseAuth.instance.currentUserの部分でNull check operator used on a null valueのエラーが出てどうにもいかなかった時の対処法です。flutterfire_cliflutterfire configureを試したり、XCodeのキャッシュを削除したりする前に、

  • firebase loginで確認してもuserの確認が取れている。
  • デバッグのシュミレータでなく実機での検証は成功する。
  • 周りでは動いていてコードには問題がなく、アプリケーション内部のクラッシュと判断できる。

上記に該当するのであればまず、試して頂きたいのが。スクリーンショット 2022-09-19 16.23.51.png
Simulator->Device->erase all content and settings...でシュミレーター上の全ての設定/コンテンツを消去してリセットしてみましょう。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1