From bd1829a095c401eb8eb7d0d2716aa8ab82a1c3fd Mon Sep 17 00:00:00 2001
From: "Jay Freeman (saurik)" <saurik@saurik.com>
Date: Sat, 31 Oct 2015 00:20:01 -0700
Subject: [PATCH] On iOS 9 sometimes they do not bother using names.

---
 Library.mm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Library.mm b/Library.mm
index 4287c06..037c3e0 100644
--- a/Library.mm
+++ b/Library.mm
@@ -2304,7 +2304,7 @@ MSHook(NSArray *, CPBitmapCreateImagesFromPath, NSString *path, CFTypeRef *names
     NSArray *images(_CPBitmapCreateImagesFromPath(path, names, arg2, arg3));
     if (images == nil)
         return nil;
-    if (*names == nil)
+    if (names == NULL || *names == nil)
         return images;
 
     NSBundle *bundle([NSBundle wb$bundleWithFile:path]);
-- 
2.45.2