From 1450c2b32c974cac7d6598a1ae5d8eb658e11841 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 31 Mar 2012 13:15:10 -0700 Subject: Terribly minor code nit: check hud for != nil. --- MobileCydia.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 487623a..bf8da9a 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -9499,7 +9499,8 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi - (void) reloadDataWithInvocation:(NSInvocation *)invocation { @synchronized (self) { UIProgressHUD *hud(loaded_ ? [self addProgressHUD] : nil); - [hud setText:UCLocalize("RELOADING_DATA")]; + if (hud != nil) + [hud setText:UCLocalize("RELOADING_DATA")]; [database_ yieldToSelector:@selector(reloadDataWithInvocation:) withObject:invocation]; -- cgit v1.2.3