Bug 816835 - Part 1: [B2G RIL] Decode Comprehension-TLV failed when its length is 0. r=allstars.chh

From 32c14fc83354f25c9e05abc7adb39cdc4453307a Mon Sep 17 00:00:00 2001
---
 dom/system/gonk/ril_worker.js |    7 +++++++
 1 file changed, 7 insertions(+)
This commit is contained in:
Siddartha Pothapragada 2012-12-04 17:02:31 -08:00
parent 116132b92d
commit c2084d3399

View File

@ -8481,6 +8481,13 @@ let StkProactiveCmdHelper = {
* | (Y-1)+X+2 | | |
*/
retrieveItem: function retrieveItem(length) {
// TS 102.223 ,clause 6.6.7 SET-UP MENU
// If the "Item data object for item 1" is a null data object
// (i.e. length = '00' and no value part), this is an indication to the ME
// to remove the existing menu from the menu system in the ME.
if (!length) {
return null;
}
let item = {
identifier: GsmPDUHelper.readHexOctet(),
text: GsmPDUHelper.readAlphaIdentifier(length - 1)