mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:30:53 +00:00
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:
parent
88160ba733
commit
a3b990072b
3 changed files with 9 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -654,6 +654,10 @@ typedef struct {
|
|||
GSDrawTiles *tiles;
|
||||
NSMutableDictionary *cache;
|
||||
|
||||
if (aName == nil)
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
switch (elementState)
|
||||
{
|
||||
case GSThemeNormalState:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue