Skip to content

Commit

Permalink
Add additional check for object prior to property lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Honkanen committed Aug 16, 2016
1 parent e012c2f commit 3cc30d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ var Session = function (socket, defer, onchallenge) {
// from one of the subscription handler objects attached to the subscription
// since for non-pattern subscriptions this is not sent over the wire
var ed = new Event(publication,
details.topic || subs[0].topic,
details.topic || (subs[0] && subs[0].topic),
details.publisher,
details.publisher_authid,
details.publisher_authrole
Expand Down

0 comments on commit 3cc30d9

Please sign in to comment.