Skip to content

Commit f1749fe

Browse files
committed
Allow null username
1 parent 35607ff commit f1749fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/auth/auth_handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class _AuthHandler extends _Handler {
4747
// calculate the mysql password hash
4848
var hash = _getHash();
4949

50-
var encodedUsername = UTF8.encode(_username);
50+
var encodedUsername = _username == null ? [] : UTF8.encode(_username);
5151
var encodedDb;
5252

5353
var size = hash.length + encodedUsername.length + 2 + 32;

0 commit comments

Comments
 (0)