MCarlomagno / FaceRecognitionAuth

😀🤳 Simple face recognition authentication (Sign up + Sign in) written in Flutter using Tensorflow Lite and Firebase ML vision library.
BSD 3-Clause "New" or "Revised" License
385 stars 193 forks source link

Null check operator used on null value #43

Open Elienock opened 2 years ago

Elienock commented 2 years ago

When I want to access the sign up page, an exception is caught by the widgets library and the relevant error-causing widget was signup on the on the home page . Can anyone help me with this error.

dhruvrauthan commented 2 years ago

I am having the same issue when trying to signup

MatheusWilgen commented 2 years ago

Same issue here: That is the Exception caught: image Here is my 'flutter --version' output:

Flutter 3.0.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision fb57da5f94 (3 days ago) • 2022-05-19 15:50:29 -0700 Engine • revision caaafc5604 Tools • Dart 2.17.1 • DevTools 2.12.2

rajmayank93 commented 2 years ago

Same issue here: Thats is the Exception caught: image Here is my 'flutter --version' output:

Flutter 3.0.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision fb57da5f94 (3 days ago) • 2022-05-19 15:50:29 -0700 Engine • revision caaafc5604 Tools • Dart 2.17.1 • DevTools 2.12.2

same issue !!

rajmayank93 commented 2 years ago

HEY EVERYONE, IF YOU ARE WORKING ON DEBUGGING THIS ISSUE.... THEN JOIN TELEGRAM GRP -> https://t.me/+xJkkX6I3RnI5ZmJl

i am also trying to resolve it.

Always-Bijoy commented 2 years ago

setState(() { faceDetected = _faceDetectorService.faces[0]; }); use this line in SignUP page after if (_faceDetectorService.faces.isNotEmpty) { in _frameFaces() Method

rajmayank93 commented 2 years ago

@Always-Bijoy Still getting same Error... Is it working fine for you???

Screenshot (115)

rahmrny12 commented 2 years ago

i do remove null check(!) from faceDetected on FacePainter at line 185. Then the null check exception dissappeared. Actually the code doing null check already inside of FacePainter class

Always-Bijoy commented 2 years ago

Yes it's working on my side, and I am successfully run this project completely

rorocabrera commented 2 years ago

I removed the null check, and inserted the abovementioned code in line 102. No error but "No face Detected" message everytime. any help?

Always-Bijoy commented 2 years ago

The project is updated now please clone it again, everything will work perfectly. Happy coding

binitshrest commented 2 years ago

image

@Always-Bijoy I am getting this error. i checked everywhere about solution but that is not helping!

binitshrest commented 2 years ago

image

@Always-Bijoy I am getting this error. I checked everywhere about solution but that is not helping!

I am using updated project. and android 12 device

raiTech7867 commented 2 years ago

I think This will help you-https://www.youtube.com/watch?v=0vkrISy4J_o