Merge "range checking for tnf" into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
5e7b7cd65b
@@ -168,6 +168,10 @@ public class NdefRecord implements Parcelable {
|
||||
throw new IllegalArgumentException("Illegal null argument");
|
||||
}
|
||||
|
||||
if (tnf < 0 || tnf > 0x07) {
|
||||
throw new IllegalArgumentException("TNF out of range " + tnf);
|
||||
}
|
||||
|
||||
/* generate flag */
|
||||
byte flags = FLAG_MB | FLAG_ME;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user