- if (!attr_field_obj) {
- BT_LIB_LOGE_APPEND_CAUSE(
- "Cannot get attributes object's array value's element by index: "
- "%![value-]+v, index=%" PRIu64, attr_obj, index);
- goto end;
- }
-
- value_obj = bt_value_array_borrow_element_by_index(
- attr_field_obj, BT_ATTR_VALUE_INDEX);
- if (!value_obj) {
- BT_LIB_LOGE_APPEND_CAUSE(
- "Cannot get attribute array value's element by index: "
- "%![value-]+v, index=%" PRIu64, attr_field_obj,
- (uint64_t) BT_ATTR_VALUE_INDEX);
- }