File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ - (void)send:(NSDictionary *)data responseCallback:(WVJBResponseCallback)respons
56
56
}
57
57
58
58
- (void )callHandler : (NSString *)handlerName {
59
- [self callHandler: handlerName data: [ NSNull null ] responseCallback: nil ];
59
+ [self callHandler: handlerName data: nil responseCallback: nil ];
60
60
}
61
61
62
62
- (void )callHandler : (NSString *)handlerName data : (id )data {
@@ -92,6 +92,9 @@ - (void)dealloc {
92
92
}
93
93
94
94
- (void )_sendData : (NSDictionary *)data responseCallback : (WVJBResponseCallback)responseCallback handlerName : (NSString *)handlerName {
95
+ if (!data) {
96
+ data = (NSDictionary *)[NSNull null ];
97
+ }
95
98
NSMutableDictionary * message = [NSMutableDictionary dictionaryWithObject: data forKey: @" data" ];
96
99
97
100
if (responseCallback) {
You can’t perform that action at this time.
0 commit comments