Skip to content

Commit

Permalink
fixes #128
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuSanal committed Oct 24, 2023
1 parent 85a1673 commit 234d25b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ private void checkClipboard() {

ClipData clipData = clipBoard.getPrimaryClip();

if (clipData == null || clipData.getItemCount() == 0) return;
if (clipData == null
|| clipData.getItemCount() == 0
|| clipData.getItemAt(0).getText() == null) return;

String text = clipData.getItemAt(0).getText().toString();

Expand Down

0 comments on commit 234d25b

Please sign in to comment.