a_bigbuf);
proto_item_append_text(data_p->elem_item, " - IMSI (%s)", a_bigbuf);
- proto_item_append_text(data_p->message_item, " MID=%s", a_bigbuf);
-
+ if (data_p->message_item)
+ {
+ proto_item_append_text(data_p->message_item, " MID=%s", a_bigbuf);
+ }
if (global_a_info_display)
{
col_append_fstr(pinfo->cinfo, COL_INFO, "MID=%s ", a_bigbuf);
curr_offset += 2;
- proto_item_append_text(parent_item_p, " - CI (%u)", value);
+ if (parent_item_p)
+ {
+ proto_item_append_text(parent_item_p, " - CI (%u)", value);
+ }
break;
case 0x05:
curr_offset += 2;
- proto_item_append_text(parent_item_p, " - LAC (%u)", value);
+ if (parent_item_p)
+ {
+ proto_item_append_text(parent_item_p, " - LAC (%u)", value);
+ }
break;
case 0x07:
curr_offset += 2;
- proto_item_append_text(parent_item_p, " - Market ID (%u) Switch Number (%u) CI (%u)",
+ if (parent_item_p)
+ {
+ proto_item_append_text(parent_item_p, " - Market ID (%u) Switch Number (%u) CI (%u)",
market_id, switch_num, value);
+ }
break;
default:
proto_tree_add_uint_format_value(tree, hf_ansi_a_rej_cause, tvb, curr_offset, 1,
oct, "%s (%u)", str, oct);
- proto_item_append_text(data_p->message_item, " - (%s)", str);
+ if (data_p->message_item)
+ {
+ proto_item_append_text(data_p->message_item, " - (%s)", str);
+ }
curr_offset++;
curr_offset = offset + elem_so_aux(tvb, pinfo, tree, offset, len, &value);
proto_item_append_text(data_p->elem_item, " - (%u) %s", value, ansi_a_so_int_to_str(value));
- proto_item_append_text(data_p->message_item, " - SO (%u)", value);
+ if (data_p->message_item)
+ {
+ proto_item_append_text(data_p->message_item, " - SO (%u)", value);
+ }
if (global_a_info_display)
{
col_append_fstr(pinfo->cinfo, COL_INFO, "- SO (%u)", value);