From 96d75a4f8f43495d715718e0504b01db38fdf157 Mon Sep 17 00:00:00 2001 From: Barbara Vujicic Date: Fri, 29 Sep 2017 16:06:27 +0200 Subject: [PATCH] Fixes crash on update --- XLForm/XL/Controllers/XLFormViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XLForm/XL/Controllers/XLFormViewController.m b/XLForm/XL/Controllers/XLFormViewController.m index 05e28cce..01174f7b 100755 --- a/XLForm/XL/Controllers/XLFormViewController.m +++ b/XLForm/XL/Controllers/XLFormViewController.m @@ -314,8 +314,8 @@ -(void)formRowDescriptorPredicateHasChanged:(XLFormRowDescriptor *)formRow oldVa -(void)updateAfterDependentRowChanged:(XLFormRowDescriptor *)formRow { - NSMutableArray* revaluateHidden = self.form.rowObservers[[formRow.tag formKeyForPredicateType:XLPredicateTypeHidden]]; - NSMutableArray* revaluateDisabled = self.form.rowObservers[[formRow.tag formKeyForPredicateType:XLPredicateTypeDisabled]]; + NSMutableArray* revaluateHidden = [self.form.rowObservers[[formRow.tag formKeyForPredicateType:XLPredicateTypeHidden]] copy]; + NSMutableArray* revaluateDisabled = [self.form.rowObservers[[formRow.tag formKeyForPredicateType:XLPredicateTypeDisabled]] copy]; for (id object in revaluateDisabled) { if ([object isKindOfClass:[NSString class]]) { XLFormRowDescriptor* row = [self.form formRowWithTag:object];