We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception has occurred. NoSuchMethodError (NoSuchMethodError: The getter 'length' was called on null. Receiver: null Tried calling: length)
static Future<Map<String, String>> getStoredCookies(String hostname) async { try { String hostnameHash = Common.hashStringSHA256(hostname); String cookiesJson = await Common.storageGet('cookies-$hostnameHash'); // first launch cookiesJson is null, but you are calling fromJson below will null var cookies = Common.fromJson(cookiesJson); return Map<String, String>.from(cookies); } catch (e) { log.shout( "problem reading stored cookies. fallback with empty cookies $e"); return Map<String, String>(); } }
The text was updated successfully, but these errors were encountered:
15f8c17
jossef
No branches or pull requests
Exception has occurred.
NoSuchMethodError (NoSuchMethodError: The getter 'length' was called on null.
Receiver: null
Tried calling: length)
The text was updated successfully, but these errors were encountered: