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

Commit 2b527ac2 authored by Ruchi Kandoi's avatar Ruchi Kandoi
Browse files

nfc: First chunked NDEF record of TNF doesn't contain the type field



Test: CTS test passes
Bug: 34943312
Change-Id: I08f37ee76810f642b35ae8bde05ef0e2eff921e0
Signed-off-by: default avatarRuchi Kandoi <kandoiruchi@google.com>
parent 3a3cd0a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -839,7 +839,7 @@ public final class NdefRecord implements Parcelable {

                if (cf && !inChunk) {
                    // first chunk
                    if (typeLength == 0) {
                    if (typeLength == 0 && tnf != NdefRecord.TNF_UNKNOWN) {
                        throw new FormatException("expected non-zero type length in first chunk");
                    }
                    chunks.clear();