Prevent runApplication from being called with uninitialized content view

Reviewed By: javache

Differential Revision: D2639111

fb-gh-sync-id: ff9733ee7be1131584d2542f04cf953c63300f95
This commit is contained in:
Pawel Sienkowski 2015-11-11 12:02:23 -08:00 committed by facebook-github-bot-3
parent 51a5b60a1a
commit bdd0b4796a
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
_appProperties = [appProperties copy];
if (_bridge.valid && !_bridge.loading) {
if (_contentView && _bridge.valid && !_bridge.loading) {
[self runApplication:_bridge.batchedBridge];
}
}