[React Native] Prevent crash in redbox code with two thrown errors

This commit is contained in:
Ben Alpert 2015-03-16 19:36:45 -07:00
parent 6fc5a78956
commit e59dcb3a60

View File

@ -85,10 +85,9 @@
- (void)showErrorMessage:(NSString *)message withStack:(NSArray *)stack showIfHidden:(BOOL)shouldShow
{
_lastStackTrace = stack;
_lastErrorMessage = message;
if (self.hidden && shouldShow) {
_lastStackTrace = stack;
_lastErrorMessage = message;
_cachedMessageCell = [self reuseCell:nil forErrorMessage:message];
[_stackTraceTableView reloadData];