You’re not checking clipboardContent
for null
. Just change:
if (clipboardContent.length() == 5) {...}
to:
if (clipboardContent != null && clipboardContent.length() == 5) {...}
solved Java, the clipboard code does not work, [closed]
You’re not checking clipboardContent
for null
. Just change:
if (clipboardContent.length() == 5) {...}
to:
if (clipboardContent != null && clipboardContent.length() == 5) {...}
solved Java, the clipboard code does not work, [closed]