Open Swifter opened 6 years ago
GetThumbnailAsync returns NULL when you attempt to open a file that looks to the file system like it might be a picture (it has .jpg or .png extension), but is actually not (ex: it is a text file someone renamed to .jpg).
GetTumbnailAsync sometimes returns NULL, which your code does not account for. Do this instead: