Skip to content

Commit

Permalink
Fix for nil array crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed May 3, 2015
1 parent 09460cf commit d29a0c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion React/Base/RCTBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef NS_ENUM(NSUInteger, RCTBridgeFields) {
* Temporarily allow to turn on and off the call batching in case someone wants
* to profile both
*/
#define BATCHED_BRIDGE 1
#define BATCHED_BRIDGE 0

#ifdef __LP64__
typedef uint64_t RCTHeaderValue;
Expand Down Expand Up @@ -206,10 +206,14 @@ - (void)_invokeAndProcessModule:(NSString *)module
arguments:(NSArray *)args
context:(NSNumber *)context;

#if BATCHED_BRIDGE

- (void)_actuallyInvokeAndProcessModule:(NSString *)module
method:(NSString *)method
arguments:(NSArray *)args
context:(NSNumber *)context;
#endif

@end

/**
Expand Down

0 comments on commit d29a0c6

Please sign in to comment.