Permalink
Browse files

Merge pull request #34 from internmatch/master

Fix unexpected nil error with Mongo
  • Loading branch information...
2 parents e5b8617 + d2cef15 commit 7dddc826dbfc216c3dfd4154aace71ec73d606c7 @jasonrclark jasonrclark committed Feb 8, 2013
Showing with 4 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +1 −0 lib/rpm_contrib/instrumentation/mongo.rb
View
@@ -13,6 +13,9 @@ tmtags
## VIM
*.swp
+## RUBYMINE
+.idea/
+
## CTAGS
tags
TAGS
@@ -15,6 +15,7 @@
include NewRelic::Agent::MethodTracer
def instrument_with_newrelic_trace(name, payload = {}, &blk)
+ payload = {} if payload.nil?
collection = payload[:collection]
if collection == '$cmd'
f = payload[:selector].first

0 comments on commit 7dddc82

Please sign in to comment.