Skip to content

Unhandled exception: Null check operator used on a null value #1

Description

@evstegneych
SocksProxy.initProxy(proxy: 'SOCKS5 185.105.89.38:27022');
  await HttpClient()
      .getUrl(Uri.parse(
          'https://raw.githubusercontent.com/tayoji-io/socks_proxy/master/README.md'))
      .then((value) {
        return value.close();
      })
      .then((value) {
        return value.transform(utf8.decoder);
      })
      .then((value) {
        return value.fold(
            '', (dynamic previous, element) => previous + element);
      })
      .then((value) => print(value))
      .catchError((e) => print(e));

library code:
image
error:
image

fix:
image

I do not know if it is correct but it works

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions