fryette / webview_cookie_manager

MIT License
48 stars 52 forks source link

Unhandled Exception: type 'Null' is not a subtype of type 'bool' #37

Closed stjfk closed 3 years ago

stjfk commented 3 years ago

Hi, First of all, thank you for your work.

After upgrading to the new version (if the site has been visited before) I started getting this error

flutter: 2.0.1 webview_cookie_manager: 2.0.0-nullsafety.0

image

mzdm commented 3 years ago

Try to switch to beta Flutter channel. Looking at Cookie seems like arguments must be non-nullable on stable but on beta/master they can be nullable.

This case should be handled through with ?? check in the map line 38.