iOS:fix NSNull Crash

This commit is contained in:
pengfei.zhou 2020-03-20 15:27:31 +08:00 committed by osborn
parent 3eda0358d1
commit 4d6884098c

View File

@ -138,6 +138,9 @@ - (void)blend:(NSDictionary *)props {
self.view.layoutConfig = self.layoutConfig; self.view.layoutConfig = self.layoutConfig;
for (NSString *key in props) { for (NSString *key in props) {
id value = props[key]; id value = props[key];
if (!value || [value isKindOfClass:[NSNull class]]) {
continue;
}
[self blendView:self.view forPropName:key propValue:value]; [self blendView:self.view forPropName:key propValue:value];
} }
[self transformProperties]; [self transformProperties];