Skip to content

Commit

Permalink
fix: check for null messages (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdHuSplunk authored Apr 14, 2023
1 parent 98654f5 commit e705857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ The signalflow client can be built for usage in a browser. This is accomplished
```
$ npm install
$ gulp browserify
$ npm run build:browser
The output can be found at ./build/signalfx.js
```
Expand Down
3 changes: 3 additions & 0 deletions lib/client/signalflow/signalflow_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ function SignalflowClient(apiToken, options) {
}

function msgCallback(msg) {
// For handling the non-object typed of the 'msg' data.
if(!msg) return;

if (msg.type === 'metadata') {
metaDataMap[msg.tsId] = msg;
}
Expand Down

0 comments on commit e705857

Please sign in to comment.