tattwei46 / flutter_login_demo

A demo login app with Flutter and Firebae
369 stars 215 forks source link

The getter 'length' is being used on null. #6

Open kushagraverma26 opened 5 years ago

kushagraverma26 commented 5 years ago

In line 60 in login_signup_page.dart ,

   if (userId.length > 0 && userId != null && _formMode == FormMode.LOGIN) {
      widget.onSignedIn();
    }
Seykotron commented 5 years ago

You are not initializing the userId to be an empty string.