newrelic / newrelic-azure-functions

Functions to collect and forward logs from Microsoft Azure to New Relic Logs
Apache License 2.0
7 stars 14 forks source link

Add null check for parsedLogs[0] #52

Closed danybmx closed 2 years ago

danybmx commented 2 years ago

Hi!

This adds a null check on the EventHub and BlobStorage forwarders function because typeof null === "object" so it will throw an exception when tries to get parsedLogs[0].record if parsedLogs[0] is null

Regards!

nr-opensource-bot commented 2 years ago

:tada: This PR is included in version 1.2.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: