mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-29 16:48:59 +08:00
Fix to ASDisplayNode so that in production, the faulty product code that returns nil for an ASLayoutSpec does not crash.
This commit is contained in:
@@ -1992,7 +1992,8 @@ void recursivelyTriggerDisplayForLayer(CALayer *layer, BOOL shouldBlock)
|
||||
return _layoutSpecBlock(self, constrainedSize);
|
||||
}
|
||||
|
||||
return nil;
|
||||
ASDisplayNodeAssert(NO, @"-[ASDisplayNode layoutSpecThatFits:] should never fall through to return empty value");
|
||||
return [[ASLayoutSpec alloc] init];
|
||||
}
|
||||
|
||||
- (ASLayout *)calculatedLayout
|
||||
|
||||
Reference in New Issue
Block a user