[yast-commit] r59745 - /branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc
Author: rhafer Date: Tue Nov 24 17:53:53 2009 New Revision: 59745 URL: http://svn.opensuse.org/viewcvs/yast?rev=59745&view=rev Log: throw error when trying to write globals before initialization Modified: branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc Modified: branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc?rev=59745&r1=59744&r2=59745&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc (original) +++ branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc Tue Nov 24 17:53:53 2009 @@ -1090,6 +1090,10 @@ if ( path->length() == 0 ) { return YCPNull(); } else { + if ( ! globals ) + { + throw std::runtime_error("Configuration not initialized." ); + } if ( path->component_str(0) == "loglevel" ) { y2milestone("Write loglevel"); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
rhafer@svn.opensuse.org