mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:50:44 +00:00
Don't attempt to load representations if the filename is nil.
This commit is contained in:
parent
7855252df0
commit
74b5836b19
1 changed files with 4 additions and 0 deletions
|
@ -210,6 +210,10 @@ implement, so we can't do that. */
|
|||
Class rep;
|
||||
NSData* data;
|
||||
|
||||
// Not worth trying to load an empty file
|
||||
if (nil == filename)
|
||||
return nil;
|
||||
|
||||
// Is the file extension already the file type?
|
||||
ext = [filename pathExtension];
|
||||
if (!ext)
|
||||
|
|
Loading…
Reference in a new issue