Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d20bc58a authored by Roman Kiryanov's avatar Roman Kiryanov Committed by Gerrit Code Review
Browse files

Merge "Allow the host to send empty clipboards to the guest"

parents e0eab7ed 8c0d9b5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ class EmulatorClipboardMonitor implements Consumer<ClipData> {
        bb.order(ByteOrder.LITTLE_ENDIAN);
        final int msgLen = bb.getInt();

        if (msgLen <= 0 || msgLen > MAX_CLIPBOARD_BYTES) {
        if (msgLen < 0 || msgLen > MAX_CLIPBOARD_BYTES) {
            throw new ProtocolException("Clipboard message length: " + msgLen + " out of bounds.");
        }