Mailinglist Archive: yast-commit (1224 mails)

< Previous Next >
[yast-commit] r59745 - /branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc
  • From: rhafer@xxxxxxxxxxxxxxxx
  • Date: Tue, 24 Nov 2009 16:53:53 -0000
  • Message-id: <E1NCyeH-0003Zh-Sm@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages