diff --git a/doric-iOS/Pod/Classes/Shader/DoricFlowLayoutNode.m b/doric-iOS/Pod/Classes/Shader/DoricFlowLayoutNode.m index f8932494..612494ed 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricFlowLayoutNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricFlowLayoutNode.m @@ -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; } }