Abhishek Banthia 9 years ago
parent
commit
cf0ae53495
  1. 14
      Clocker/Custom Table Cell Views/CLTimezoneCellView.m

14
Clocker/Custom Table Cell Views/CLTimezoneCellView.m

@ -54,6 +54,20 @@
if ([[sender superview] isKindOfClass:[self class]])
{
CLTimezoneCellView *cellView = (CLTimezoneCellView *)[sender superview];
/*
Fix for http://crashes.to/s/f43ce0accd0
More stringent null check for array values.
*/
if (panelController.defaultPreferences == nil && floatingWindow.defaultPreferences == nil)
{
return;
}
NSData *dataObject = displayMode.integerValue == 0 ? panelController.defaultPreferences[cellView.rowNumber] : floatingWindow.defaultPreferences[cellView.rowNumber];
CLTimezoneData *timezoneObject = [CLTimezoneData getCustomObject:dataObject];

Loading…
Cancel
Save