@@ -25,7 +25,7 @@ module Agents |
||
| 25 | 25 |
end |
| 26 | 26 |
|
| 27 | 27 |
def working? |
| 28 |
- event_created_within?(options['expected_update_period_in_days']) && most_recent_event.payload['success'] == true && !recent_error_logs? |
|
| 28 |
+ event_created_within?(options['expected_update_period_in_days']) && most_recent_event && most_recent_event.payload['success'] == true && !recent_error_logs? |
|
| 29 | 29 |
end |
| 30 | 30 |
|
| 31 | 31 |
def default_options |