Skip to content
New issue

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

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

Open
evstegneych opened this issue Mar 21, 2022 · 1 comment · May be fixed by #8
Open

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

evstegneych opened this issue Mar 21, 2022 · 1 comment · May be fixed by #8

Comments

@evstegneych
Copy link

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

@i5hi
Copy link

i5hi commented Jun 8, 2022

I get the same error, but the fix does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants