From 2c2082b39a652ae3bf7032b8d952e30cdeb13bba Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 24 Jul 2011 10:19:59 +0000 Subject: [PATCH] Don't crash when _UIImageWithName(NULL). --- Library.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library.mm b/Library.mm index f3534c2..084ab9a 100644 --- a/Library.mm +++ b/Library.mm @@ -1404,6 +1404,8 @@ MSHook(void, TranscriptController$loadView, mSMSMessageTranscriptController *sel MSHook(UIImage *, _UIImageWithName, NSString *name) { if (Debug_) NSLog(@"WB:Debug: _UIImageWithName(\"%@\")", name); + if (name == nil) + return nil; int identifier; bool packed; -- 2.47.2