logging in send_read_result
added NULL buffer protection