Skip to content

Commit

Permalink
Guard against nil robot
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed May 15, 2014
1 parent a92d55a commit aff09bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/campfire.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class CampfireStreaming extends EventEmitter
headers =
"Host" : "streaming.campfirenow.com"
"Authorization" : self.authorization
"User-Agent" : "Hubot/#{@robot.version} (#{@robot.name})"
"User-Agent" : "Hubot/#{@robot?.version} (#{@robot?.name})"

options =
"agent" : false
Expand Down Expand Up @@ -257,7 +257,7 @@ class CampfireStreaming extends EventEmitter
"Authorization" : @authorization
"Host" : @host
"Content-Type" : "application/json"
"User-Agent" : "Hubot/#{@robot.version} (#{@robot.name})"
"User-Agent" : "Hubot/#{@robot?.version} (#{@robot?.name})"

options =
"agent" : false
Expand Down

0 comments on commit aff09bf

Please sign in to comment.