iOS: fix crash when flowlayout in wrong state
This commit is contained in:
parent
f1e3ef5e6b
commit
7ed8947671
@ -377,7 +377,10 @@ - (NSDictionary *)itemModelAt:(NSUInteger)position {
|
||||
NSUInteger pos = position + idx;
|
||||
self.itemViewIds[@(pos)] = thisViewId;
|
||||
}];
|
||||
return array[0];
|
||||
if (array.count > 0 ) {
|
||||
return array[0];
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user