Monotone-Parent: 58f1829bce5e146423ed657d76063f09b7596385

Monotone-Revision: 8bf030be6f5baed09d67ad6a173017ace25834c7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-06-28T14:45:45
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-06-28 14:45:45 +00:00
parent 8ef875b1f4
commit 79552f8ff3
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2012-06-28 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoObject.m (-initWithName:inContainer:): make
sure that "_name" is neither nil nor empty.
2012-06-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoGroup.m

View File

@@ -177,6 +177,9 @@
{
if ((self = [self init]))
{
if ([_name length] == 0)
[NSException raise: NSInvalidArgumentException
format: @"'_name' must not be an empty string"];
context = [[WOApplication application] context];
nameInContainer = [_name copy];
container = _container;