Skip to content

Fix potential crash on bad clipboard item mime type - #64

Merged
apex2504 merged 1 commit into
breadboardapp:3.3from
flazepe:3.3
Aug 28, 2026
Merged

Fix potential crash on bad clipboard item mime type#64
apex2504 merged 1 commit into
breadboardapp:3.3from
flazepe:3.3

Conversation

@flazepe

@flazepe flazepe commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

A user might have an item copied to their clipboard that isn't necessarily an image. The current code always assumes that a text would exist if the copied item wasn't an image, but that's not always the case. This would lead to a crash due to the app calling toString() to a null value (clipboardItem.text).

This fixes that and also makes sure that the copied text isn't empty (or filled with whitespaces) before attempting to paste anything.

@apex2504 apex2504 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@apex2504
apex2504 merged commit a2050bb into breadboardapp:3.3 Aug 28, 2026
1 of 2 checks passed
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 this pull request may close these issues.

2 participants