mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Bugfix for #19588
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25052 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e4b89ea9aa
commit
3117236cd7
2 changed files with 12 additions and 5 deletions
|
@ -1595,11 +1595,9 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
NSString *path, *fullpath;
|
||||
NSEnumerator* pathlist;
|
||||
|
||||
if (!name || [name length] == 0)
|
||||
if (name == nil)
|
||||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"No resource name specified."];
|
||||
/* NOT REACHED */
|
||||
name = @"";
|
||||
}
|
||||
|
||||
pathlist = [[self _bundleResourcePathsWithRootPath: rootPath
|
||||
|
@ -1627,7 +1625,9 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
}
|
||||
}
|
||||
else
|
||||
fullpath = nil;
|
||||
{
|
||||
fullpath = nil;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue