diff --git a/doric-iOS/Pod/Classes/Shader/DoricListNode.m b/doric-iOS/Pod/Classes/Shader/DoricListNode.m index 16b44bca..d5b0a09f 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricListNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricListNode.m @@ -228,7 +228,12 @@ - (void)blendSubNode:(NSDictionary *)subModel { return; } NSIndexPath *indexPath = [NSIndexPath indexPathForRow:[key integerValue] inSection:0]; - [self.view reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone]; + @try { + [self.view reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone]; + } + @catch(id exception) { + [self.doricContext.driver.registry onException:exception inContext:self.doricContext]; + } }]; } }]; @@ -252,7 +257,12 @@ - (void)callItem:(NSUInteger)position height:(CGFloat)height { return; } NSIndexPath *indexPath = [NSIndexPath indexPathForRow:position inSection:0]; - [self.view reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone]; + @try { + [self.view reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone]; + } + @catch(id exception) { + [self.doricContext.driver.registry onException:exception inContext:self.doricContext]; + } }]; }); } else {