* Source/NSImage.m (+imageNamed:): Don't try to look up path

if called with nil (just return nil).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34632 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2012-01-25 23:25:14 +00:00
parent d81df878a5
commit cbf7bc52a9
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,9 @@
2012-01-25 Eric Wasylishen <ericwa@ericwa-MacBook>
2012-01-25 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSImage.m (+imageNamed:): Don't try to look up path
if called with nil (just return nil).
2012-01-25 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSClipView.m: Disable copy-on-scroll until after release

View file

@ -209,7 +209,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
*/
[imageLock lock];
image = (NSImage*)[nameDict objectForKey: aName];
if (image == nil)
if (image == nil && aName != nil)
{
NSString *path = [self _pathForImageNamed: aName];