Skip to content

Commit a8569a2

Browse files
zsistlalavarou
andauthored
Update agent/lib_php_amqplib.c
Co-authored-by: Michal Nowacki <[email protected]>
1 parent 127e62a commit a8569a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/lib_php_amqplib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ NR_PHP_WRAPPER(nr_rabbitmq_basic_get) {
675675
*The retval should be an AMQPMessage. nr_php_is_zval_* ops do NULL checks
676676
* as well.
677677
*/
678-
if (nr_php_is_zval_valid_object(*retval_ptr)) {
678+
if (NULL != retval_ptr && nr_php_is_zval_valid_object(*retval_ptr)) {
679679
/*
680680
* Get the exchange and routing key from the AMQPMessage
681681
*/

0 commit comments

Comments
 (0)