Don't attempt to load representations if the filename is nil.

This commit is contained in:
Riccardo Mottola 2024-12-16 01:09:54 +01:00
parent 7855252df0
commit 74b5836b19

View file

@ -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)