Skip to content

Commit b00dcc3

Browse files
authored
fix(agent): Add additonal NULL check (#1046)
1 parent 5c0086e commit b00dcc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/lib_php_amqplib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ static inline void nr_php_amqplib_insert_dt_headers(zval* amqp_msg) {
365365
* the actual zval.
366366
*/
367367

368-
if (IS_REFERENCE == Z_TYPE_P(amqp_table_data)) {
368+
if (NULL != amqp_table_data && IS_REFERENCE == Z_TYPE_P(amqp_table_data)) {
369369
amqp_table_data = Z_REFVAL_P(amqp_table_data);
370370
}
371371
if (!nr_php_is_zval_valid_array(amqp_table_data)) {

0 commit comments

Comments
 (0)