We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35607ff commit f1749feCopy full SHA for f1749fe
lib/src/auth/auth_handler.dart
@@ -47,7 +47,7 @@ class _AuthHandler extends _Handler {
47
// calculate the mysql password hash
48
var hash = _getHash();
49
50
- var encodedUsername = UTF8.encode(_username);
+ var encodedUsername = _username == null ? [] : UTF8.encode(_username);
51
var encodedDb;
52
53
var size = hash.length + encodedUsername.length + 2 + 32;
0 commit comments