Skip to content

qr_painter.dart, Null check operator used on a null value #223

Open
@masterwok

Description

@masterwok

Describe the bug

Version: 4.1.0

Observing the following stack-trace in production DataDog logs:

#0 replaceFirstNull (/Users/vagrant/.pub-cache/hosted/pub.dev/source_span-1.10.0/lib/src/utils.dart:39)
#0 Highlighter.highlight (/Users/vagrant/.pub-cache/hosted/pub.dev/source_span-1.10.0/lib/src/highlighter.dart:224)
#1 QrPainter._initPaints (/Users/vagrant/.pub-cache/hosted/pub.dev/qr_flutter-4.1.0/lib/src/qr_painter.dart:183)

To Reproduce
Steps to reproduce the behavior:

Haven't been able to reproduce this issue locally.

Expected behavior

Should guard against null reference exception.

Screenshots

n/a

Desktop (please complete the following information):

  • OS: iOS

Smartphone (please complete the following information):

  • Device: iOS
  • OS: 17.5.1

Additional context

n/a

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions