Skip to content

NullSafety issues with pointyCastle on Web Builds #31

@jlambright

Description

@jlambright

I'm not sure why this is happening when we do release builds. Any thoughts?

`/root/.pub-cache/hosted/pub.dev/pointycastle-3.9.0/lib/macs/cbc_block_cipher_mac.dart:103:46:
Warning: Operand of null-aware operation '!' has type 'Padding' which excludes null.

  • 'Padding' is from 'package:pointycastle/api.dart' ('/root/.pub-cache/hosted/pub.dev/pointycastle-3.9.0/lib/api.dart').
    var paddingName = _padding != null ? '/${_padding!.algorithmName}' : '';
    ^
    /root/.pub-cache/hosted/pub.dev/pointycastle-3.9.0/lib/macs/cbc_block_cipher_mac.dart:203:7:
    Warning: Operand of null-aware operation '!' has type 'Padding' which excludes null.
  • 'Padding' is from 'package:pointycastle/api.dart' ('/root/.pub-cache/hosted/pub.dev/pointycastle-3.9.0/lib/api.dart').
    _padding!.addPadding(_buf, _bufOff);
    ^
    /root/.pub-cache/hosted/pub.dev/pointycastle-3.9.0/lib/signers/ecdsa_signer.dart:94:41:
    Warning: Operand of null-aware operation '!' has type 'Mac' which excludes null.
  • 'Mac' is from 'package:pointycastle/api.dart' ('/root/.pub-cache/hosted/pub.dev/pointycastle-3.9.0/lib/api.dart').
    kCalculator = _RFC6979KCalculator(_kMac!, n, _pvkey!.d!, message);
    ^
    /root/.pub-cache/hosted/pub.dev/pointycastle-3.9.0/lib/signers/ecdsa_signer.dart:166:7:
    Warning: Operand of null-aware operation '!' has type 'Digest' which excludes null.
  • 'Digest' is from 'package:pointycastle/api.dart' ('/root/.pub-cache/hosted/pub.dev/pointycastle-3.9.0/lib/api.dart').
    _digest!.reset();`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions