%attribute string "*"
},
+ %attribute name(CheckCommand) "check_command",
+
%attribute name(TimePeriod) "check_period",
%attribute number "check_interval",
%attribute number "retry_interval",
type EventCommand inherits Command {
-}
\ No newline at end of file
+}
Dictionary::Ptr result;
try {
- result = GetCheckCommand()->Execute(GetSelf());
+ CheckCommand::Ptr command = GetCheckCommand();
+
+ if (!command)
+ return;
+
+ result = command->Execute(GetSelf());
} catch (const std::exception& ex) {
std::ostringstream msgbuf;
msgbuf << "Exception occured during check for service '"