Skip to content

Commit

Permalink
handle nil reuseIdentifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Sulma committed Aug 31, 2011
1 parent 664d5e3 commit 3ebacf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/AQGridView.m
Expand Up @@ -611,7 +611,7 @@ - (void) enqueueReusableCells: (NSArray *) reusableCells
for ( AQGridViewCell * cell in reusableCells )
{
NSMutableSet * reuseSet = [_reusableGridCells objectForKey: cell.reuseIdentifier];
if ( reuseSet == nil )
if ( reuseSet == nil && cell.reuseIdentifier )
{
reuseSet = [[NSMutableSet alloc] initWithCapacity: 32];
[_reusableGridCells setObject: reuseSet forKey: cell.reuseIdentifier];
Expand Down

0 comments on commit 3ebacf7

Please sign in to comment.