lib/logstash/inputs/mongoprofile.rb in logstash-input-mongoprofile-0.1.7 vs lib/logstash/inputs/mongoprofile.rb in logstash-input-mongoprofile-0.1.8

- old
+ new

@@ -98,10 +98,10 @@ yield @parser.parse(document) end end def get_last_document_date - if @documents != nil + if @documents and @documents[-1] != nil @documents[-1]['ts'] else nil end end \ No newline at end of file