Skip to content
Permalink
Browse files

Fix crash with empty ScheduledDowntime 'ranges' attribute

fixes #11158
  • Loading branch information...
dnsmichi committed Apr 22, 2016
1 parent c54de4b commit 7442cd94f51f2825495fa3d311b100a49b3a62a4
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/icinga/scheduleddowntime.cpp
@@ -131,6 +131,9 @@ std::pair<double, double> ScheduledDowntime::FindNextSegment(void)

Dictionary::Ptr ranges = GetRanges();

if (!ranges)
return std::make_pair(0, 0);

Array::Ptr segments = new Array();

Dictionary::Ptr bestSegment;

0 comments on commit 7442cd9

Please sign in to comment.
You can’t perform that action at this time.