diff --git a/cacio-tta/src/main/java/com/github/caciocavallosilano/cacio/ctc/CTCClipboard.java b/cacio-tta/src/main/java/com/github/caciocavallosilano/cacio/ctc/CTCClipboard.java index acfa7e0..5c44275 100644 --- a/cacio-tta/src/main/java/com/github/caciocavallosilano/cacio/ctc/CTCClipboard.java +++ b/cacio-tta/src/main/java/com/github/caciocavallosilano/cacio/ctc/CTCClipboard.java @@ -77,7 +77,8 @@ private static void querySystemClipboard() { private static void systemClipboardDataReceived(String clipboardData, String clipboardDataMime) { synchronized(sSyncLock) { lastClipboardCheckTime = System.currentTimeMillis(); - INSTANCE.contents = new CTCStringTransferable(clipboardData, clipboardDataMime); + if(clipboardData != null && clipboardDataMime != null) + INSTANCE.contents = new CTCStringTransferable(clipboardData, clipboardDataMime); sSyncLock.notifyAll(); } }