Fix nil pointer exception

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27559 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-01-08 11:30:16 +00:00
parent 88160ba733
commit a3b990072b
3 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2009-01-08 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSTheme.m: Fix nil pointer exception.
2009-01-07 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSWindow+Toolbar.m,

View file

@ -442,7 +442,7 @@ APPKIT_EXPORT NSString *GSThemeWillDeactivateNotification;
/**
* Returns the tile image information for a particular image name,
* or nil if there is no such information.<br />
* or nil if there is no such information or the name is nil.<br />
* The GUI library uses this internally to handling tiling of image
* information to draw user interface elements. The tile information
* returned by this method can be passed to the

View file

@ -654,6 +654,10 @@ typedef struct {
GSDrawTiles *tiles;
NSMutableDictionary *cache;
if (aName == nil)
{
return nil;
}
switch (elementState)
{
case GSThemeNormalState: