Skip to content

Clipboard.setData crashes the app #121976

@krll-kov

Description

@krll-kov
String? key

void main() {
  try {
    Clipboard.setData(ClipboardData(text: key));
  } catch (_) {
    /* Do nothing */
  }
}

ClipboardData accepts nullable strings, however, such setter crashes the app.

Platform: Windows. Flutter: 3.7.6 from stable channel

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: desktopRunning on desktopc: fatal crashCrashes that terminate the processengineflutter/engine related. See also e: labels.found in release: 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-windowsBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions