IcingaApplication::RefType ConfigRpcComponent::GetIcingaApplication(void)
{
- return dynamic_pointer_cast<IcingaApplication>(GetApplication());
+ return static_pointer_cast<IcingaApplication>(GetApplication());
}
string ConfigRpcComponent::GetName(void)
{
IcingaApplication::RefType icingaApp = GetIcingaApplication();
- if (icingaApp.get() == NULL)
- throw exception(/*"Component loaded by incompatible application."*/);
-
ConnectionManager::RefType connectionManager = icingaApp->GetConnectionManager();
ConfigHive::RefType configHive = icingaApp->GetConfigHive();